/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: 2016-02-13 14:21:53 UTC
  • Revision ID: tim@ed.am-20160213142153-68g7pzq0au6bejep
fixed init command

Show diffs side-by-side

added added

removed removed

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