Cloning mercurial repo with subrepo without network connection
Isaac Jurado
diptongo at gmail.com
Tue Oct 11 14:07:55 UTC 2011
On Tue, Oct 11, 2011 at 1:35 PM, Sergey Kishchenko <voidwrk at gmail.com> wrote:
> Hi,
>
> I have a problem with mercurial subrepos that prevents me from using
> all its advantages. The problem is described below:
>
> Let's assume we have a repo /tmp/repos/test1 and a parent repo /tmp/repos/parent
> with .hgsub as follows:
> test1 = /tmp/repos/test1
>
> Cloning works fine in this case:
> $ cd /tmp/repos
> $ hg clone parent parent2
> updating to branch default
> cloning subrepo test1 from /tmp/repos/test1
> 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
>
> But if there is no access to the test1 repo, the clone will fail:
> $ hg clone parent2 paren3
> updating to branch default
> abort: repository /tmp/repos/test1 not found!
>
> That means it's not possible to use mercurial as DVCS with subrepos,
> mercurial needs centralized repo for the subrepos. The problem with
> non working update was already discussed in
> http://article.gmane.org/gmane.comp.version-control.mercurial.general/23378/
> but the problem above is different: mercurial doesn't use original
> repo as a source for subrepo cloning. Is it possible to override its
> behavior?
Have you read the "subpaths" section from the hgrc(5) man page?
--
Isaac Jurado
"The noblest pleasure is the joy of understanding"
Leonardo da Vinci
More information about the Mercurial
mailing list