~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-03-15 21:00:35 UTC
  • mfrom: (3228.4.15 revision_graph)
  • Revision ID: pqm@pqm.ubuntu.com-20080315210035-5qwda8bre2nwsra3
(jam) Update PackRepo.get_revision_graph() to efficiently handle
        ghosts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from bzrlib import (
22
22
    errors,
23
 
    symbol_versioning
 
23
    symbol_versioning,
24
24
    )
25
25
from bzrlib.deprecated_graph import (
26
26
    all_descendants,
233
233
    return root, ancestors, descendants
234
234
 
235
235
 
 
236
@deprecated_function(symbol_versioning.one_three)
236
237
def combined_graph(revision_a, revision_b, revision_source):
237
238
    """Produce a combined ancestry graph.
238
239
    Return graph root, ancestors map, descendants map, set of common nodes"""
256
257
    return root, ancestors, descendants, common
257
258
 
258
259
 
 
260
@deprecated_function(symbol_versioning.one_three)
259
261
def common_ancestor(revision_a, revision_b, revision_source, 
260
262
                    pb=DummyProgress()):
261
263
    if None in (revision_a, revision_b):
320
322
 
321
323
class MultipleRevisionSources(object):
322
324
    """Proxy that looks in multiple branches for revisions."""
 
325
 
 
326
    @symbol_versioning.deprecated_method(symbol_versioning.one_three)
323
327
    def __init__(self, *args):
324
328
        object.__init__(self)
325
329
        assert len(args) != 0