Show More
@@ -1735,6 +1735,10 b' def _docommit(ui, repo, *pats, **opts):' | |||||
1735 |
|
1735 | |||
1736 | cmdutil.commitstatus(repo, node, branch, bheads, opts) |
|
1736 | cmdutil.commitstatus(repo, node, branch, bheads, opts) | |
1737 |
|
1737 | |||
|
1738 | if not ui.quiet and ui.configbool('commands', 'commit.post-status'): | |||
|
1739 | status(ui, repo, modified=True, added=True, removed=True, deleted=True, | |||
|
1740 | unknown=True, subrepos=opts.get('subrepos')) | |||
|
1741 | ||||
1738 | @command('config|showconfig|debugconfig', |
|
1742 | @command('config|showconfig|debugconfig', | |
1739 | [('u', 'untrusted', None, _('show untrusted configuration options')), |
|
1743 | [('u', 'untrusted', None, _('show untrusted configuration options')), | |
1740 | ('e', 'edit', None, _('edit user config')), |
|
1744 | ('e', 'edit', None, _('edit user config')), |
@@ -202,6 +202,9 b" coreconfigitem('color', 'pagermode'," | |||||
202 | default=dynamicdefault, |
|
202 | default=dynamicdefault, | |
203 | ) |
|
203 | ) | |
204 | _registerdiffopts(section='commands', configprefix='commit.interactive.') |
|
204 | _registerdiffopts(section='commands', configprefix='commit.interactive.') | |
|
205 | coreconfigitem('commands', 'commit.post-status', | |||
|
206 | default=False, | |||
|
207 | ) | |||
205 | coreconfigitem('commands', 'grep.all-files', |
|
208 | coreconfigitem('commands', 'grep.all-files', | |
206 | default=False, |
|
209 | default=False, | |
207 | ) |
|
210 | ) |
@@ -438,6 +438,10 b' effect and style see :hg:`help color`.' | |||||
438 | ``commands`` |
|
438 | ``commands`` | |
439 | ------------ |
|
439 | ------------ | |
440 |
|
440 | |||
|
441 | ``commit.post-status`` | |||
|
442 | Show status of files in the working directory after successful commit. | |||
|
443 | (default: False) | |||
|
444 | ||||
441 | ``resolve.confirm`` |
|
445 | ``resolve.confirm`` | |
442 | Confirm before performing action if no filename is passed. |
|
446 | Confirm before performing action if no filename is passed. | |
443 | (default: False) |
|
447 | (default: False) |
@@ -838,3 +838,42 b' at the end' | |||||
838 | second line |
|
838 | second line | |
839 |
|
839 | |||
840 | $ cd .. |
|
840 | $ cd .. | |
|
841 | ||||
|
842 | testing commands.commit.post-status config option | |||
|
843 | ||||
|
844 | $ hg init ci-post-st | |||
|
845 | $ cd ci-post-st | |||
|
846 | $ echo '[commands]' > .hg/hgrc | |||
|
847 | $ echo 'commit.post-status = 1' >> .hg/hgrc | |||
|
848 | ||||
|
849 | $ echo 'ignored-file' > .hgignore | |||
|
850 | $ hg ci -qAm 0 | |||
|
851 | ||||
|
852 | $ echo 'c' > clean-file | |||
|
853 | $ echo 'a' > added-file | |||
|
854 | $ echo '?' > unknown-file | |||
|
855 | $ echo 'i' > ignored-file | |||
|
856 | $ hg add clean-file added-file | |||
|
857 | $ hg ci -m 1 clean-file | |||
|
858 | A added-file | |||
|
859 | ? unknown-file | |||
|
860 | $ hg st -mardu | |||
|
861 | A added-file | |||
|
862 | ? unknown-file | |||
|
863 | ||||
|
864 | $ touch modified-file | |||
|
865 | $ hg add modified-file | |||
|
866 | $ hg ci -m 2 modified-file -q | |||
|
867 | ||||
|
868 | $ echo 'm' > modified-file | |||
|
869 | $ hg ci --amend -m 'reworded' -X 're:' | |||
|
870 | saved backup bundle to $TESTTMP/ci-post-st/.hg/strip-backup/*-amend.hg (glob) | |||
|
871 | M modified-file | |||
|
872 | A added-file | |||
|
873 | ? unknown-file | |||
|
874 | $ hg st -mardu | |||
|
875 | M modified-file | |||
|
876 | A added-file | |||
|
877 | ? unknown-file | |||
|
878 | ||||
|
879 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now