Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 42244:0f01394457a0
commit: add ability to print file status after each successful invocation
When commands.commit.post-status is enabled, `hg commit` will effectively run
`hg status -mardu` after committing. It can help catch mistakes like not
committing all needed files or not adding unknown files that should've been
part of the just created commit.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 03 May 2019 14:11:16 +0800 |
parents | 8d14d91584f1 |
children | 96bc1ef4a302 |
line wrap: on
line diff
--- a/mercurial/commands.py Fri May 03 14:07:14 2019 +0800 +++ b/mercurial/commands.py Fri May 03 14:11:16 2019 +0800 @@ -1735,6 +1735,10 @@ cmdutil.commitstatus(repo, node, branch, bheads, opts) + if not ui.quiet and ui.configbool('commands', 'commit.post-status'): + status(ui, repo, modified=True, added=True, removed=True, deleted=True, + unknown=True, subrepos=opts.get('subrepos')) + @command('config|showconfig|debugconfig', [('u', 'untrusted', None, _('show untrusted configuration options')), ('e', 'edit', None, _('edit user config')),