mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
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.
This commit is contained in:
parent
2b14caf707
commit
6ea2f0a8d1
@ -1419,7 +1419,7 @@ def unbundle(repo, cg, heads, source, url):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user