changeset 25896:6805a4f76cda

exchange: fix dead assignment The assignment of the value from bundle2.processbundle() to 'r' is unused. It is currently the same as its third argument (if given), and since that argument may eventually go away (according to the method's docstring), let's reassign the return value to 'op' instead to better prepare for that.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 20 Jul 2015 13:39:25 -0700
parents c30b739c322f
children d6106df97edd
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Mon Jul 20 13:35:19 2015 -0700
+++ b/mercurial/exchange.py	Mon Jul 20 13:39:25 2015 -0700
@@ -1419,7 +1419,7 @@
                 op = bundle2.bundleoperation(repo, lambda: tr,
                                              captureoutput=captureoutput)
                 try:
-                    r = bundle2.processbundle(repo, cg, op=op)
+                    op = bundle2.processbundle(repo, cg, op=op)
                 finally:
                     r = op.reply
                     if captureoutput and r is not None: