~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Martin Pool
  • Date: 2005-06-24 11:09:36 UTC
  • Revision ID: mbp@sourcefrog.net-20050624110935-87a3b29aed05ac19
- Branch.revert copies files to backups before reverting them

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        # revert file modified since last revision
41
41
        b.revert(['hello.txt'])
42
42
        self.check_file_contents('hello.txt', 'initial hello')
 
43
        self.check_file_contents('hello.txt~', 'new hello')
43
44
 
44
 
        # reverting again causes no change
 
45
        # reverting again clobbers the backup
45
46
        b.revert(['hello.txt'])
46
47
        self.check_file_contents('hello.txt', 'initial hello')
 
48
        self.check_file_contents('hello.txt~', 'initial hello')
47
49
 
48
50
 
49
51