~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

  • Committer: John Arbash Meinel
  • Date: 2007-10-26 19:18:48 UTC
  • mto: This revision was merged to the branch mainline in revision 2982.
  • Revision ID: john@arbash-meinel.com-20071026191848-kn2zemp87fo5cavb
Prefer tree.get_root_id() as more explicit than tree.path2id('')
Besides, it turns out that all trees had that implemented anyway.
And WT4 already had an implementation that did not require loading the full inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
        to_store = self.target.weave_store
348
348
        for tree in self.iter_rev_trees(revs):
349
349
            revision_id = tree.inventory.root.revision
350
 
            root_id = tree.path2id('')
 
350
            root_id = tree.get_root_id()
351
351
            parents = inventory_weave.get_parents(revision_id)
352
352
            if root_id not in versionedfile:
353
353
                versionedfile[root_id] = to_store.get_weave_or_empty(root_id,