subrepo: use correct paths for subrepos with ..-relative paths on windows stable
authorMads Kiilerich <mads@kiilerich.com>
Tue, 15 Nov 2011 02:16:30 +0100
branchstable
changeset 15498 ac5a340b26de
parent 15497 9bea3aed6ee1
child 15499 58f96703a9ab
subrepo: use correct paths for subrepos with ..-relative paths on windows posixpath normpath of c:\foo\bar/../baz is baz, so now we pconvert first.
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Fri Nov 11 01:07:10 2011 +0100
+++ b/mercurial/subrepo.py	Tue Nov 15 02:16:30 2011 +0100
@@ -223,7 +223,7 @@
         source.path = posixpath.normpath(source.path)
         parent = _abssource(repo._subparent, push, abort=False)
         if parent:
-            parent = util.url(parent)
+            parent = util.url(util.pconvert(parent))
             parent.path = posixpath.join(parent.path or '', source.path)
             parent.path = posixpath.normpath(parent.path)
             return str(parent)