~lifeless/bzr/5158

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revert.py

  • Committer: Robert Collins
  • Date: 2008-08-05 09:43:41 UTC
  • Revision ID: robertc@robertcollins.net-20080805094341-uelcr4qz98trh2yj
Implement the oft-discussed automatic-add-and-delete at commit time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
        tree.add('file')
127
127
        tree.commit('added file', rev_id='rev1')
128
128
        os.unlink('file')
129
 
        tree.commit('removed file')
 
129
        tree.commit('removed file', auto_add_delete=True)
130
130
        self.failIfExists('file')
131
131
        tree.revert(old_tree=tree.branch.repository.revision_tree('rev1'))
132
132
        self.failUnlessExists('file')