/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:42:00 UTC
  • Revision ID: tim@ed.am-20140418144200-ksbr3l58p2v3jhy2
fixed bugs in command.expand_files, where results could be not unique, nor
sorted, and make sure the last component of the files is not resolved if it is a
symlink

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,