/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-03-12 22:36:44 UTC
  • Revision ID: tim@ed.am-20140312223644-9pehua402pww0op7
fixed incorrect variable name

Show diffs side-by-side

added added

removed removed

99
99
                revision.
100
100
                """
101
101
 
102
 
                # bzr revert (run twice to handle a bug in bzr where reverting a
103
 
                # directory from a symlink can cause conflicts during initial revert)
104
 
                self.run( [ 'bzr', 'revert', '--no-backup' ] )
 
102
                # bzr revert
105
103
                self.run( [ 'bzr', 'revert', '--no-backup' ] )
106
104
 
107
105
                # bzr st
111
109
                # remove unknown files
112
110
                if 'unknown' in files:
113
111
                        for file in files[ 'unknown' ]:
114
 
                                if the.verbose > 1: print "removing unknown: " + file
115
112
                                full_file = os.path.join( self.dir, file )
116
113
                                if os.path.isfile( full_file ):
117
114
                                        os.unlink( full_file )
118
 
                                elif os.path.isdir( full_file ):
 
115
                                elif os.full_file.isdir( full_file ):
119
116
                                        shutil.rmtree( full_file )
120
117
                                else:
121
118
                                        raise RuntimeError( 'exotic file in repo: %s' % file )