~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.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:
317
317
                pass
318
318
            else:
319
319
                try:
320
 
                    parent_ids.append(tree.inventory[root_id].revision)
 
320
                    parent_ids.append(tree.get_file_revision(root_id))
321
321
                except errors.NoSuchId:
322
322
                    # not in the tree
323
323
                    pass