--- 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