~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Aaron Bentley
  • Date: 2007-05-26 04:27:39 UTC
  • mto: This revision was merged to the branch mainline in revision 2534.
  • Revision ID: aaron.bentley@utoronto.ca-20070526042739-0o2yva7r05fslgqm
Use GraphWalker.unique_ancestor to determine merge base

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from cStringIO import StringIO
21
21
 
22
 
from bzrlib import branch, errors, lockdir, repository
 
22
from bzrlib import (
 
23
    branch,
 
24
    errors,
 
25
    graph_walker,
 
26
    lockdir,
 
27
    repository,
 
28
)
23
29
from bzrlib.branch import Branch, BranchReferenceFormat
24
30
from bzrlib.bzrdir import BzrDir, RemoteBzrDirFormat
25
31
from bzrlib.config import BranchConfig, TreeConfig
294
300
        assert response[0] in ('yes', 'no'), 'unexpected response code %s' % (response,)
295
301
        return response[0] == 'yes'
296
302
 
 
303
    def get_graph_walker(self):
 
304
        """Return the graph walker for this repository format"""
 
305
        return graph_walker.GraphWalker(self.get_revision_graph_with_ghosts())
 
306
 
297
307
    def gather_stats(self, revid=None, committers=None):
298
308
        """See Repository.gather_stats()."""
299
309
        path = self.bzrdir._path_for_remote_call(self._client)