~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: John Arbash Meinel
  • Date: 2007-11-30 23:27:18 UTC
  • mto: This revision was merged to the branch mainline in revision 3072.
  • Revision ID: john@arbash-meinel.com-20071130232718-9e3thvmobvj799br
If we are going to overwrite the target, we don't have to do
any ancestry checks. Just nuke it right away.
This makes 'bzr pull --overwrite' a bit faster.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1283
1283
        self._ensure_real()
1284
1284
        return self._real_branch.set_push_location(location)
1285
1285
 
1286
 
    def update_revisions(self, other, stop_revision=None):
 
1286
    def update_revisions(self, other, stop_revision=None, overwrite=False):
1287
1287
        self._ensure_real()
1288
1288
        return self._real_branch.update_revisions(
1289
 
            other, stop_revision=stop_revision)
 
1289
            other, stop_revision=stop_revision, overwrite=overwrite)
1290
1290
 
1291
1291
 
1292
1292
class RemoteBranchConfig(BranchConfig):