Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 37239:f7d3915d5b3a
bundleoperation: pass the source argument from all the users
We now have a source attribute to the bundle2.bundleoperation class which stores
the operation which leads to the current bundling/unbundling. Let's make sure we
pass source argument from all the users of the command.
Differential Revision: https://phab.mercurial-scm.org/D2995
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 31 Mar 2018 14:51:34 +0530 |
parents | b837655c1509 |
children | aacfca6f9767 |
line wrap: on
line diff
--- 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: