hgext/mq.py
changeset 22048 bfc09ea87f3e
parent 22003 cbbd957358ff
child 22049 86c5318b8e5b
--- a/hgext/mq.py	Wed Aug 06 11:53:08 2014 -0500
+++ b/hgext/mq.py	Wed Aug 06 00:48:51 2014 -0700
@@ -930,7 +930,12 @@
             oldqbase = repo[qfinished[0]]
             tphase = repo.ui.config('phases', 'new-commit', phases.draft)
             if oldqbase.phase() > tphase and oldqbase.p1().phase() <= tphase:
-                phases.advanceboundary(repo, tphase, qfinished)
+                tr = repo.transaction('qfinish')
+                try:
+                    phases.advanceboundary(repo, tphase, qfinished)
+                    tr.close()
+                finally:
+                    tr.release()
 
     def delete(self, repo, patches, opts):
         if not patches and not opts.get('rev'):