/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-07-30 19:09:02 UTC
  • Revision ID: tim@ed.am-20140730190902-bkuu372rya4zokm8
added info for add command to --help; fixed bug with add command where all files
in directories could be added to the commit instead of just the ones you've
specified

Show diffs side-by-side

added added

removed removed

141
141
                                else:
142
142
                                        raise RuntimeError( 'exotic file in repo: %s' % file )
143
143
 
144
 
                # if a revision identifyer has been given, update to that
145
 
                if revno is not None:
 
144
                # if a revision identifier has been given, ensure we're updated to that
 
145
                if revno is not None and self.get_revno() != revno:
146
146
 
147
147
                        # bzr update
148
148
                        self.run( [ 'bzr', 'update', '-r', revno ] )
259
259
                """
260
260
 
261
261
                # bzr add
262
 
                self.run( [ 'bzr', 'add' ] + files )
 
262
                self.run( [ 'bzr', 'add', '-N' ] + files )
263
263
 
264
264
 
265
265
        def commit( self ):