Question about subrepo usages

Johannes Totz jtotz at imperial.ac.uk
Tue Dec 1 14:52:41 CST 2009


Matt Mackall wrote:
> [..] The biggest downside is you might not be
> able to update locally if your subrepo sources are offline, but that can
> happen in any case.

On that note: one could store the subrepo inside the main one, e.g. in
.hgsub:
mysublib1 = .
mysublib2 = .

Unfortunately that would clone the whole main-repo into each sub-repo.

If .hgsub would support the full URL format including the # it could be
used to indicate which branch to *clone* up to and then update with what
is recorded in .hgsubstate.
Would solve the issue with subrepos being unavailable and would allow
easy sharing via hgweb (because it would need to serve only one repo).

Not sure what would/should happen on commit...



More information about the Mercurial mailing list