diff mercurial/exchange.py @ 24738:457e26da029b

bundle2: use unbundle source as transaction name This is what a bundle 1 push is doing. This got caught by trying to run the whole test-suite using bundle2 for exchanges.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 11 Apr 2015 13:58:36 -0400
parents 8f70b529cb0c
children 5640efd1b160
line wrap: on
line diff
--- a/mercurial/exchange.py	Wed Apr 15 18:34:34 2015 -0400
+++ b/mercurial/exchange.py	Sat Apr 11 13:58:36 2015 -0400
@@ -1282,7 +1282,7 @@
         # push can proceed
         if util.safehasattr(cg, 'params'):
             try:
-                tr = repo.transaction('unbundle')
+                tr = repo.transaction(source)
                 tr.hookargs['source'] = source
                 tr.hookargs['url'] = url
                 tr.hookargs['bundle2'] = '1'