--- a/mercurial/bundle2.py Wed Apr 16 18:41:48 2014 -0400
+++ b/mercurial/bundle2.py Wed Apr 16 14:09:35 2014 -0400
@@ -280,9 +280,6 @@
"""
op = bundleoperation(repo, transactiongetter)
# todo:
- # - only create reply bundle if requested.
- op.reply = bundle20(op.ui)
- # todo:
# - replace this is a init function soon.
# - exception catching
unbundler.params
@@ -674,3 +671,11 @@
assert not h
if heads != op.repo.heads():
raise exchange.PushRaced()
+
+@parthandler('replycaps')
+def handlereplycaps(op, inpart):
+ """Notify that a reply bundle should be created
+
+ Will convey bundle capability at some point too."""
+ if op.reply is None:
+ op.reply = bundle20(op.ui)