Cloning mercurial repo with subrepo without network connection
Sergey Kishchenko
voidwrk at gmail.com
Wed Oct 12 18:53:29 UTC 2011
It seems like a solution for me. Thank you!
2011/10/11 Matt Mackall <mpm at selenic.com>:
> On Tue, 2011-10-11 at 21:24 +0300, Sergey Kishchenko wrote:
>> The example above with the absolute paths in the file system was only
>> intended to demonstrate the problem. That is, when subrepo is
>> inaccessible, why it can't be cloned from the parent's subrepo that
>> still exists in filesystem(in example above parent/test1 is a full
>> clone that is accessible)?
>
> (I see my last punning hint was too subtle, sorry.)
>
> A URL is an absolute path. If you tell Mercurial to use an absolute
> path, Mercurial will do just that. Whether you have a local copy is
> irrelevant. If you want Mercurial to use a relative path for a subrepo,
> then do:
>
> lib = lib
>
> Then when you clone http://server/foo, mercurial will clone the subrepo
> http://server/foo/lib too. When you clone /home/sergey/foo, it'll
> clone /home/sergey/foo.
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
>
More information about the Mercurial
mailing list