~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_branchbuilder.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-19 12:54:46 UTC
  • mfrom: (5793.2.6 revisiontree-get-revision)
  • Revision ID: pqm@pqm.ubuntu.com-20110419125446-s16r0ck8t1ig6u7n
(jelmer) Add RevisionTree.get_file_revision,
 replacing an existing static method on Tree. 
 This should also make it unnecessary to access the inventory in a couple
 more cases. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
                             ], d_tree)
322
322
        # Because we copied the exact text into *this* tree, the 'c' file
323
323
        # should look like it was not modified in the merge
324
 
        self.assertEqual('C-id', d_tree.inventory['c-id'].revision)
 
324
        self.assertEqual('C-id', d_tree.get_file_revision('c-id'))
325
325
 
326
326
    def test_set_parent_to_null(self):
327
327
        builder = self.build_a_rev()