diff hgext/mq.py @ 20773:efbf15979538

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 18 Mar 2014 14:25:28 -0500
parents 277dc5f27310 1e686e55780c
children 7f7c8ef31c5d
line wrap: on
line diff
--- a/hgext/mq.py	Sat Mar 15 15:44:51 2014 +0100
+++ b/hgext/mq.py	Tue Mar 18 14:25:28 2014 -0500
@@ -1083,6 +1083,7 @@
                         p.write("# Date %s %s\n\n" % date)
                 if util.safehasattr(msg, '__call__'):
                     msg = msg()
+                    repo.savecommitmessage(msg)
                 commitmsg = msg and msg or ("[mq]: %s" % patchfn)
                 n = newcommit(repo, None, commitmsg, user, date, match=match,
                               force=True)
@@ -2577,6 +2578,7 @@
 
     if opts.get('edit'):
         message = ui.edit(message, user or ui.username())
+        repo.savecommitmessage(message)
 
     diffopts = q.patchopts(q.diffopts(), *patches)
     wlock = repo.wlock()