Global subrepository config option?
c.caughie at indigovision.com
Mon Sep 13 07:38:29 CDT 2010
> -----Original Message-----
> From: mercurial-devel-bounces at selenic.com [mailto:mercurial-devel-
> bounces at selenic.com] On Behalf Of Martin Geisler
> Sent: 13 September 2010 13:27
> To: mercurial-devel at selenic.com
> Cc: Klaus Koch
> Subject: Global subrepository config option?
> Perhaps it would also be smart to make the --subrepos option a
> Boolean option, similar to how the --color option behaves:
> hg status --subrepos=never # no recursion
> hg status --subrepos=yes # yes, please recurse into subrepos
> hg status --subrepos # interpret this as yes (True)
> That way, the user can override the config file as needed. This
> should also work for commit, then:
> hg commit --subrepos=no -m 'Just the top-level files'
> but maybe that is more controversal?
I would definitely appreciate the ability to have --subrepos enabled by default, but to be able to override it when committing. Usually when I commit recursively it is by accident.
Perhaps this is getting too complicated, but a nice feature would be to allow the defaults to be set on a per-command basis, so that e.g. "hg status" works recursively by default but "hg commit" doesn't.
Latest News at: http://www.indigovision.com/news2010.php
More information about the Mercurial-devel