##// END OF EJS Templates
unionrepo: use pathutil.normasprefix to ensure os.sep at the end of cwd...
FUJIWARA Katsunori -
r24835:e4f75c93 stable
parent child Browse files
Show More
@@ -15,7 +15,7 b' from node import nullid'
15 from i18n import _
15 from i18n import _
16 import os
16 import os
17 import util, mdiff, cmdutil, scmutil
17 import util, mdiff, cmdutil, scmutil
18 import localrepo, changelog, manifest, filelog, revlog
18 import localrepo, changelog, manifest, filelog, revlog, pathutil
19
19
20 class unionrevlog(revlog.revlog):
20 class unionrevlog(revlog.revlog):
21 def __init__(self, opener, indexfile, revlog2, linkmapper):
21 def __init__(self, opener, indexfile, revlog2, linkmapper):
@@ -228,7 +228,7 b' def instance(ui, path, create):'
228 if parentpath == cwd:
228 if parentpath == cwd:
229 parentpath = ''
229 parentpath = ''
230 else:
230 else:
231 cwd = os.path.join(cwd,'')
231 cwd = pathutil.normasprefix(cwd)
232 if parentpath.startswith(cwd):
232 if parentpath.startswith(cwd):
233 parentpath = parentpath[len(cwd):]
233 parentpath = parentpath[len(cwd):]
234 if path.startswith('union:'):
234 if path.startswith('union:'):
General Comments 0
You need to be logged in to leave comments. Login now