sapling/mercurial/help
Patrick Mezard 1e4894d773 commit: abort if a subrepo is modified and ui.commitsubrepos=no
The default behaviour is to commit subrepositories with uncommitted changes. In
my experience this is usually undesirable:

- Changes to dependencies are often debugging leftovers
- Real changes should generally be applied on the source project directly,
  tested then committed. This is not always possible, subversion subrepos may
  include only a small part of the source project, without the tests.

Setting ui.commitsubrepos=no will now abort commits containing such modified
subrepositories like:

  $ hg --config ui.commitsubrepos=no ci -m msg
  abort: uncommitted changes in subrepo sub

I ruled out the hook solution because it does not easily take --include/exclude
options in account. Also, my main concern is whether this flag could cause
problems with extensions. If there are legitimate reasons for callers to
override this behaviour (I could not find any), they might either override at ui
level, or we could add an argument to localrepo.commit() later.

v2:
- Renamed ui.commitsubs to ui.commitsubrepos
- Mention the configuration entry in hg help subrepos
2011-02-15 22:25:48 +01:00
..
config.txt Explain trust near hgrc in config help 2010-05-21 12:51:55 +03:00
dates.txt setup: install translation files as package data 2009-12-01 16:06:10 +01:00
diffs.txt help: refer to user configuration file more consistently 2010-08-27 22:36:35 -04:00
environment.txt encoding: default ambiguous character to narrow 2010-10-27 15:35:21 -05:00
extensions.txt help: refer to user configuration file more consistently 2010-08-27 22:36:35 -04:00
glossary.txt glossary: fixed typo 2010-08-17 17:33:42 +02:00
hgweb.txt help: add some help for hgweb.config files 2010-04-26 11:03:40 -05:00
merge-tools.txt help: fix typo in merge-tools topic 2010-10-27 12:03:08 -02:00
multirevs.txt setup: install translation files as package data 2009-12-01 16:06:10 +01:00
patterns.txt match: support reading pattern lists from files 2010-12-23 15:12:24 -06:00
revisions.txt setup: install translation files as package data 2009-12-01 16:06:10 +01:00
revsets.txt revsets: generate predicate help dynamically 2010-10-23 19:21:51 +02:00
subrepos.txt commit: abort if a subrepo is modified and ui.commitsubrepos=no 2011-02-15 22:25:48 +01:00
templates.txt help: correct documentation for branches keyword 2010-12-19 21:49:54 -05:00
urls.txt help: ssh urls don't allow passwords 2011-01-27 13:29:21 -06:00