[PATCH] subrepo: config option to disable subrepositories
gregory.szorc at gmail.com
Sat Nov 4 21:43:39 EDT 2017
On Fri, Nov 3, 2017 at 11:57 PM, Yuya Nishihara <yuya at tcha.org> wrote:
> On Fri, 03 Nov 2017 17:28:27 -0700, Gregory Szorc wrote:
> > # HG changeset patch
> > # User Gregory Szorc <gregory.szorc at gmail.com>
> > # Date 1509755155 25200
> > # Fri Nov 03 17:25:55 2017 -0700
> > # Branch stable
> > # Node ID f2390c369bfebf32f26f5a2e4aa5620224a7c8ea
> > # Parent f445b10dc7fb3495d24d1c22b0996148864c77f7
> > subrepo: config option to disable subrepositories
> > +``enablesubrepos``
> > + Whether the subrepositories feature is enabled. If disabled,
> > + subrepositories are effectively ignored by the Mercurial client.
> > + (default: True)
> We might want to select subrepo types to be enabled since hg subrepo is
> more widely used and considered less broken.
I would like per-type controls as well.
I would prefer to start with a simple patch providing a master switch. We
can add per-type switches in later. But we should have a plan for the
option names so the end state has a reasonable UI.
I'll try to send out a V2 in the next few hours...
> > +TODO buggy because localrepository.commit() managed its file contents
> > + $ hg commit -m 'manually add .hgsubstate'
> > + nothing changed
> > + 
> > +
> > +... but hg commit --amend works (this relies on a regression in 4.4)
> > +
> > + $ hg commit --amend
> > + saved backup bundle to $TESTTMP/testrepo0/.hg/strip-
> backup/addf99df3e66-ab5c9ff8-amend.hg (glob)
> Yeah, it's the issue5677.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mercurial-devel