diff mercurial/commands.py @ 20773:efbf15979538

merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 18 Mar 2014 14:25:28 -0500
parents f1dfef0a9352 03774a2b6991
children 13fcb9ca9ccc
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Mar 15 15:44:51 2014 +0100
+++ b/mercurial/commands.py	Tue Mar 18 14:25:28 2014 -0500
@@ -1437,11 +1437,14 @@
             try:
                 if opts.get('secret'):
                     ui.setconfig('phases', 'new-commit', 'secret')
+                    # Propagate to subrepos
+                    repo.baseui.setconfig('phases', 'new-commit', 'secret')
 
                 return repo.commit(message, opts.get('user'), opts.get('date'),
                                    match, editor=e, extra=extra)
             finally:
                 ui.setconfig('phases', 'new-commit', oldcommitphase)
+                repo.baseui.setconfig('phases', 'new-commit', oldcommitphase)
 
 
         node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
@@ -5645,6 +5648,7 @@
 
         if opts.get('edit'):
             message = ui.edit(message, ui.username())
+            repo.savecommitmessage(message)
 
         # don't allow tagging the null rev
         if (not opts.get('remove') and