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
Showing
- mercurial/commands.py 5 additions, 1 deletionmercurial/commands.py
- mercurial/help/config.txt 1 addition, 1 deletionmercurial/help/config.txt
- mercurial/localrepo.py 3 additions, 2 deletionsmercurial/localrepo.py
- tests/test-debugcomplete.t 1 addition, 1 deletiontests/test-debugcomplete.t
- tests/test-mq-subrepo.t 2 additions, 0 deletionstests/test-mq-subrepo.t
- tests/test-qrecord.t 1 addition, 0 deletionstests/test-qrecord.t
- tests/test-subrepo-deep-nested-change.t 1 addition, 1 deletiontests/test-subrepo-deep-nested-change.t
- tests/test-subrepo-git.t 5 additions, 5 deletionstests/test-subrepo-git.t
- tests/test-subrepo-recursion.t 10 additions, 3 deletionstests/test-subrepo-recursion.t
- tests/test-subrepo-svn.t 6 additions, 6 deletionstests/test-subrepo-svn.t
- tests/test-subrepo.t 6 additions, 0 deletionstests/test-subrepo.t
Loading
Please register or sign in to comment