changeset 24795 | f9aa4cb8f2dd |
parent 24754 | 5dc5cd7abbf5 |
child 24847 | b705e5ab3b07 |
--- a/mercurial/exchange.py Thu Apr 16 03:16:04 2015 -0400 +++ b/mercurial/exchange.py Thu Apr 16 03:17:01 2015 -0400 @@ -1288,6 +1288,7 @@ check_heads(repo, heads, 'uploading changes') # push can proceed if util.safehasattr(cg, 'params'): + r = None try: wlock = repo.wlock() lock = repo.lock() @@ -1299,6 +1300,8 @@ tr.close() except Exception, exc: exc.duringunbundle2 = True + if r is not None: + exc._bundle2salvagedoutput = r.salvageoutput() raise else: lock = repo.lock()