~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit_merge.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:
89
89
 
90
90
        wty.commit('merge from x', rev_id='y@u-0-2', allow_pointless=False)
91
91
        tree = by.repository.revision_tree('y@u-0-2')
92
 
        inv = tree.inventory
93
 
        self.assertEquals(inv['ecks-id'].revision, 'x@u-0-1')
94
 
        self.assertEquals(inv['why-id'].revision, 'y@u-0-1')
 
92
        self.assertEquals(tree.get_file_revision('ecks-id'), 'x@u-0-1')
 
93
        self.assertEquals(tree.get_file_revision('why-id'), 'y@u-0-1')
95
94
 
96
95
        check.check_dwim(bx.base, False, True, True)
97
96
        check.check_dwim(by.base, False, True, True)