[PATCH 2 of 8 V5] bundleoperation: add applybookmarks flag
Stanislau Hlebik
stash at fb.com
Fri Sep 16 07:10:30 EDT 2016
# HG changeset patch
# User Stanislau Hlebik <stash at fb.com>
# Date 1473951984 25200
# Thu Sep 15 08:06:24 2016 -0700
# Node ID f3fb030f0e4601561ac94137c7481694407db7b7
# Parent b25504471680d6d14f3096997760bc3acd76089d
bundleoperation: add applybookmarks flag
This flag will be used by `bookmarks` part handler.
If it is false then handler will make no changes to the repo and just add
bookmarks to the `op.records`.
If it is true then handler will change the repo bookmarks.
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -286,13 +286,15 @@
* a way to construct a bundle response when applicable.
"""
- def __init__(self, repo, transactiongetter, captureoutput=True):
+ def __init__(self, repo, transactiongetter, captureoutput=True,
+ applybookmarks=False):
self.repo = repo
self.ui = repo.ui
self.records = unbundlerecords()
self.gettransaction = transactiongetter
self.reply = None
self.captureoutput = captureoutput
+ self.applybookmarks = applybookmarks
class TransactionUnavailable(RuntimeError):
pass
More information about the Mercurial-devel
mailing list