Mercurial > hg
comparison tests/test-debugcomplete.t @ 15321:e174353e8cda stable
subrepos: abort commit by default if a subrepo is dirty (BC)
This changeset flips the default value of ui.commitsubrepos setting
from True to False and adds a --subrepos flag to commit.
The commit, status, and diff commands behave like this with regard to
recusion and the ui.commitsubrepos setting:
| recurses | recurses
| by default | with --subrepos
--------+---------------+----------------
commit: | commitsubrepo | True
status: | False | True
diff: | False | True
By changing the default from True to False, the table becomes
consistent in the two columns:
* without --subrepos on the command line, commit will abort if a
subrepo is dirty and status/diff wont show changes inside subrepos.
* with --subrepos, all three commands will recurse.
A --subrepos flag on the command line overrides the config settin.g
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 21 Oct 2011 00:33:08 +0200 |
parents | e4d135632f6d |
children | a84698badf0b |
comparison
equal
deleted
inserted
replaced
15320:681267a5f491 | 15321:e174353e8cda |
---|---|
189 Show all commands + options | 189 Show all commands + options |
190 $ hg debugcommands | 190 $ hg debugcommands |
191 add: include, exclude, subrepos, dry-run | 191 add: include, exclude, subrepos, dry-run |
192 annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, include, exclude | 192 annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, include, exclude |
193 clone: noupdate, updaterev, rev, branch, pull, uncompressed, ssh, remotecmd, insecure | 193 clone: noupdate, updaterev, rev, branch, pull, uncompressed, ssh, remotecmd, insecure |
194 commit: addremove, close-branch, include, exclude, message, logfile, date, user | 194 commit: addremove, close-branch, include, exclude, message, logfile, date, user, subrepos |
195 diff: rev, change, text, git, nodates, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, unified, stat, include, exclude, subrepos | 195 diff: rev, change, text, git, nodates, show-function, reverse, ignore-all-space, ignore-space-change, ignore-blank-lines, unified, stat, include, exclude, subrepos |
196 export: output, switch-parent, rev, text, git, nodates | 196 export: output, switch-parent, rev, text, git, nodates |
197 forget: include, exclude | 197 forget: include, exclude |
198 init: ssh, remotecmd, insecure | 198 init: ssh, remotecmd, insecure |
199 log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, hidden, patch, git, limit, no-merges, stat, style, template, include, exclude | 199 log: follow, follow-first, date, copies, keyword, rev, removed, only-merges, user, only-branch, branch, prune, hidden, patch, git, limit, no-merges, stat, style, template, include, exclude |