Feature request: Selective subrepos
Isaac Jurado
diptongo at gmail.com
Tue Feb 14 00:14:29 UTC 2012
On Tue, Feb 14, 2012 at 12:36 AM, Todd Greer <TGreer at affinegy.com> wrote:
>
> My proposal is to have files like “repo-set-a.hgsub” and “repo-set-b.hgsub”,
> with a command like “hg addsubrepos repo-set-a” to specify that this
> repository should now act as though it has as subrepos everything in
> “repo-set-a.hgsub”. Future pulls, updates, pushes, etc. would all act
> accordingly. Each .hgsub would have its own .hgsubstate file. I see this as
> a new part of the subrepo feature, but it could also be a new extension.
>
> As an alternative, the subrepo-set selection could happen at clone-time via
> a command line argument or .hgrc setting.
What is the purpose of different subrepo sets? Is it just a subrepo
URL issue or you really are looking to have different .hgsub files
like:
foo = ssh://xx/foo
bar = ssh://yy/bar
And:
willy = https://ww/willy
nelly = http://tt/nelly
If you want to be able to pull subrepos from other locations than the
ones defined at .hgsub, take a look at the [subpaths] of the Mercurial
configuration help:
http://selenic.com/hg/help/config
Otherwise, I don't think your request makes any sense; to my humble
understanding, that is.
Cheers.
--
Isaac Jurado
"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
More information about the Mercurial
mailing list