mercurial/localrepo.py
changeset 36819 aff5996f3043
parent 36554 06f59bdde626
child 36952 b24cde12061b
--- a/mercurial/localrepo.py	Fri Mar 09 16:10:55 2018 +0100
+++ b/mercurial/localrepo.py	Fri Mar 09 14:30:15 2018 -0800
@@ -1177,7 +1177,7 @@
                 raise error.ProgrammingError('transaction requires locking')
         tr = self.currenttransaction()
         if tr is not None:
-            return tr.nest()
+            return tr.nest(name=desc)
 
         # abort here if the journal already exists
         if self.svfs.exists("journal"):
@@ -1316,7 +1316,8 @@
                                      self.store.createmode,
                                      validator=validate,
                                      releasefn=releasefn,
-                                     checkambigfiles=_cachedfiles)
+                                     checkambigfiles=_cachedfiles,
+                                     name=desc)
         tr.changes['revs'] = xrange(0, 0)
         tr.changes['obsmarkers'] = set()
         tr.changes['phases'] = {}