mercurial/exchange.py
changeset 32945 febd6bfa770d
parent 32914 e14484e7f562
child 32948 af31d531dda0
--- a/mercurial/exchange.py	Mon Jun 19 00:06:23 2017 -0700
+++ b/mercurial/exchange.py	Thu Jun 15 16:10:53 2017 -0700
@@ -1734,7 +1734,8 @@
         # push can proceed
         if not isinstance(cg, bundle2.unbundle20):
             # legacy case: bundle1 (changegroup 01)
-            with repo.lock():
+            txnname = "\n".join([source, util.hidepassword(url)])
+            with repo.lock(), repo.transaction(txnname):
                 r = cg.apply(repo, source, url)
         else:
             r = None