~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revert.py

  • Committer: Robert Collins
  • Date: 2007-03-01 01:02:30 UTC
  • mto: (2255.11.3 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: robertc@robertcollins.net-20070301010230-fh8p34iloqh7ua5j
Dont use a basis tree that is not in the tree's parents for revert testing - its not guaranteed usable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
        # newly-added files should not be deleted
57
57
        tree.add('new_file')
58
 
        basis_tree = tree.basis_tree()
 
58
        basis_tree = tree.branch.repository.revision_tree(tree.last_revision())
59
59
        tree.revert([])
60
60
        self.failUnlessExists('tree/new_file')
61
61