~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Robert Collins
  • Date: 2005-10-12 07:28:41 UTC
  • Revision ID: robertc@lifelesslap.robertcollins.net-20051012072841-ffbcdc4c5285b374
revert symlinks correctly

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        self.runbzr('commit -m f')
174
174
        os.unlink('symlink')
175
175
        self.runbzr('revert')
 
176
        self.failUnlessExists('symlink')
 
177
        os.unlink('symlink')
 
178
        os.symlink('a-different-path', 'symlink')
 
179
        self.runbzr('revert')
 
180
        self.assertEqual('/unlikely/to/exist',
 
181
                         os.readlink('symlink'))
176
182
        
177
183
        file('hello', 'wt').write('xyz')
178
184
        self.runbzr('commit -m xyz hello')