Cloning locally a repo with subrepos using ../ in .hgsub
Mike Williams
obsd1 at eandem.co.uk
Sun Jan 30 07:03:51 CST 2011
On 01/30/11 00:53, Mads Kiilerich wrote:
> Hmm. hgsub mapping is not (just) a mapping in the file system but a
> mapping of internal paths (which always uses forward slash). The mapping
> could be used on platforms where \ isn't a directory separator, and it
> will also be used when constructing URLs. I guess that we don't have any
> intentions of supporting \ as path separator in .hgsub - just like
> .hgignore also requires forward slashes. That should perhaps be
> clarified somewhere in the documentation.
That would clarify things. It would be nice to error or warn when a \
appears in the resulting path on Windows otherwise you could have
problems due to different behaviour with a suitable subpaths resulting
in hg picking up a different sub-repo and giving unknown revision
warnings during the update. I should say subtler problems since you can
obviously redirect a sub-repo in .hgsub to a totally different one with
subpaths anyway.
--
Mike
More information about the Mercurial
mailing list