/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/vcs/bzr.py

  • Committer: Tim Marston
  • Date: 2014-04-18 14:37:11 UTC
  • Revision ID: tim@ed.am-20140418143711-0cwh7hm1w53w4k8q
made checks for verbose >= 1 explicit

Show diffs side-by-side

added added

removed removed

253
253
                return files['conflicts'] if 'conflicts' in files else None
254
254
 
255
255
 
256
 
        def add( self, files ):
257
 
                """Make sure files are added to version control.
258
 
                @param files a list of relative filenames
259
 
                """
260
 
 
261
 
                # bzr add
262
 
                self.run( [ 'bzr', 'add' ] + files )
263
 
 
264
 
 
265
 
        def commit( self ):
266
 
                """Commit changes to the repo.
267
 
                """
268
 
 
269
 
                # bzr commit
270
 
                self.run( [ 'bzr', 'commit', '-m', '' ] )
271
 
 
272
 
 
273
256
        def run( self, cmd ):
274
257
                if the.verbose >= 2: print 'exec: %s' % ' '.join( cmd )
275
258
                p = Popen( cmd, cwd = self.dir,