Running Mercurial 2.0.2 on Windows:
In my .hgrc:
[subpaths]
MYREPOS/(.*) = https://server/repos/\1
And in my .hgsub:
subrepo/lib = MYREPOS/lib
When I do a push, the push path of the sub repo is the concatenation of it's path to the main repo, rather than an absolute path - the output is:
pushing to https://server/repos/main
pushing subrepo subrepo\lib to https://server/repos/main/http%3A//server/repos/lib
I would have expected:
pushing to https://server/repos/main
pushing subrepo subrepo\lib to https://server/repos/lib
Is it because the 'absoluteness or relativeness' of the sub repo path is determined by right hand path in .hgsub and not the value it is mapped to? For example, MYREPOS/lib is relative, and therefore the mapped path will be treated as relative, whether it is or not?