--- a/mercurial/exchange.py Sat Mar 31 14:49:16 2018 +0530
+++ b/mercurial/exchange.py Sat Mar 31 14:51:34 2018 +0530
@@ -1595,7 +1595,8 @@
_pullbundle2extraprepare(pullop, kwargs)
bundle = pullop.remote.getbundle('pull', **pycompat.strkwargs(kwargs))
try:
- op = bundle2.bundleoperation(pullop.repo, pullop.gettransaction)
+ op = bundle2.bundleoperation(pullop.repo, pullop.gettransaction,
+ source='pull')
op.modes['bookmarks'] = 'records'
bundle2.processbundle(pullop.repo, bundle, op=op)
except bundle2.AbortFromPart as exc:
@@ -2052,7 +2053,8 @@
gettransaction()
op = bundle2.bundleoperation(repo, gettransaction,
- captureoutput=captureoutput)
+ captureoutput=captureoutput,
+ source='push')
try:
op = bundle2.processbundle(repo, cg, op=op)
finally: