~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-07 23:40:39 UTC
  • mfrom: (5137.1.2 commit)
  • Revision ID: pqm@pqm.ubuntu.com-20100407234039-52svwnj557wnywlm
(robertc) bzr commit will prompt before using a commit message that was
 generated by a template and not edited by the user. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    lru_cache,
41
41
    osutils,
42
42
    revision as _mod_revision,
43
 
    static_tuple,
44
43
    symbol_versioning,
45
44
    trace,
46
45
    tsort,
2627
2626
    def _make_parents_provider(self):
2628
2627
        return self
2629
2628
 
2630
 
    @needs_read_lock
2631
 
    def get_known_graph_ancestry(self, revision_ids):
2632
 
        """Return the known graph for a set of revision ids and their ancestors.
2633
 
        """
2634
 
        st = static_tuple.StaticTuple
2635
 
        revision_keys = [st(r_id).intern() for r_id in revision_ids]
2636
 
        known_graph = self.revisions.get_known_graph_ancestry(revision_keys)
2637
 
        return graph.GraphThunkIdsToKeys(known_graph)
2638
 
 
2639
2629
    def get_graph(self, other_repository=None):
2640
2630
        """Return the graph walker for this repository format"""
2641
2631
        parents_provider = self._make_parents_provider()