/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-23 17:55:37 UTC
  • mfrom: (3018 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3020.
  • Revision ID: bialix@ukr.net-20071123175537-wke5mt9hxkh92xc2
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
# 2. Since len(['D', 'E']) > 1, find_lca('D', 'E') => ['A']
45
45
 
46
46
 
 
47
class DictParentsProvider(object):
 
48
 
 
49
    def __init__(self, ancestry):
 
50
        self.ancestry = ancestry
 
51
 
 
52
    def __repr__(self):
 
53
        return 'DictParentsProvider(%r)' % self.ancestry
 
54
 
 
55
    def get_parents(self, revisions):
 
56
        return [self.ancestry.get(r, None) for r in revisions]
 
57
 
47
58
 
48
59
class _StackedParentsProvider(object):
49
60