hgext/mq.py
changeset 20773 efbf15979538
parent 20629 277dc5f27310
parent 20769 1e686e55780c
child 20785 7f7c8ef31c5d
--- 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()