Mercurial > hg
diff mercurial/help/config.txt @ 34985:5e27afeddaee stable
subrepo: add config option to reject any subrepo operations (SEC)
This is an alternative workaround for the issue5730.
Perhaps this is the simplest way of disabling subrepo operations. It does
nothing clever, but just aborts if Mercurial starts accessing to a subrepo.
I think Greg's patch is more useful since it allows us to at least check
out the parent repository. However, that would be confusing if the default
is flipped to checkout=False and subrepos are silently ignored.
I don't like the config name 'allowed', but I couldn't get any better name.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 05 Nov 2017 21:22:07 +0900 |
parents | 3f8273172636 |
children | 828cf35f1de6 |
line wrap: on
line diff
--- a/mercurial/help/config.txt Fri Nov 03 20:12:50 2017 +0900 +++ b/mercurial/help/config.txt Sun Nov 05 21:22:07 2017 +0900 @@ -1893,6 +1893,19 @@ doesn't match the full path, an attempt is made to apply it on the relative path alone. The rules are applied in definition order. +``subrepos`` +------------ + +This section contains options that control the behavior of the +subrepositories feature. See also :hg:`help subrepos`. + +``allowed`` + Whether subrepository operation in the working directory is allowed. + + When disabled, any commands including :hg:`update` will fail if + subrepositories are involved. + (default: True) + ``templatealias`` -----------------