~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-20 08:10:24 UTC
  • mfrom: (2637.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070720081024-5xhlp7r8ufwxt6nf
(Kent Gibson) Update update's help

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        :param entry_vf: The entry versioned file, if its already available.
182
182
        """
183
183
        def get_ancestors(weave, entry):
184
 
            return set(weave.get_ancestry(entry.revision))
 
184
            return set(weave.get_ancestry(entry.revision, topo_sorted=False))
185
185
        # revision:ie mapping for each ie found in previous_inventories.
186
186
        candidates = {}
187
187
        # revision:ie mapping with one revision for each head.
1047
1047
                        child_dirs.append((child_relpath+'/', child_ie))
1048
1048
            stack.extend(reversed(child_dirs))
1049
1049
 
 
1050
    def make_entry(self, kind, name, parent_id, file_id=None):
 
1051
        """Simple thunk to bzrlib.inventory.make_entry."""
 
1052
        return make_entry(kind, name, parent_id, file_id)
 
1053
 
1050
1054
    def entries(self):
1051
1055
        """Return list of (path, ie) for all entries except the root.
1052
1056