~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

(jam) Implement Graph.find_distance_to_null(),
        use it to speed up finding the revno when we are setting a branch to
        a random revision_id

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
from bzrlib.revision import ensure_null, NULL_REVISION
49
49
from bzrlib.trace import mutter, note, warning
50
50
 
 
51
 
51
52
# Note: RemoteBzrDirFormat is in bzrdir.py
52
53
 
53
54
class RemoteBzrDir(BzrDir):
1564
1565
        self._ensure_real()
1565
1566
        return self._real_branch.set_push_location(location)
1566
1567
 
1567
 
    def update_revisions(self, other, stop_revision=None, overwrite=False):
 
1568
    def update_revisions(self, other, stop_revision=None, overwrite=False,
 
1569
                         graph=None):
1568
1570
        self._ensure_real()
1569
1571
        return self._real_branch.update_revisions(
1570
 
            other, stop_revision=stop_revision, overwrite=overwrite)
 
1572
            other, stop_revision=stop_revision, overwrite=overwrite,
 
1573
            graph=graph)
1571
1574
 
1572
1575
 
1573
1576
def _extract_tar(tar, to_dir):