mercurial/unionrepo.py
branchstable
changeset 24835 e4f75c93f073
parent 24118 76f6ae06ddf5
child 25988 83f220c7d6f0
--- a/mercurial/unionrepo.py	Wed Apr 22 23:38:55 2015 +0900
+++ b/mercurial/unionrepo.py	Wed Apr 22 23:38:55 2015 +0900
@@ -15,7 +15,7 @@
 from i18n import _
 import os
 import util, mdiff, cmdutil, scmutil
-import localrepo, changelog, manifest, filelog, revlog
+import localrepo, changelog, manifest, filelog, revlog, pathutil
 
 class unionrevlog(revlog.revlog):
     def __init__(self, opener, indexfile, revlog2, linkmapper):
@@ -228,7 +228,7 @@
         if parentpath == cwd:
             parentpath = ''
         else:
-            cwd = os.path.join(cwd,'')
+            cwd = pathutil.normasprefix(cwd)
             if parentpath.startswith(cwd):
                 parentpath = parentpath[len(cwd):]
     if path.startswith('union:'):