##// 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 15 from i18n import _
16 16 import os
17 17 import util, mdiff, cmdutil, scmutil
18 import localrepo, changelog, manifest, filelog, revlog
18 import localrepo, changelog, manifest, filelog, revlog, pathutil
19 19
20 20 class unionrevlog(revlog.revlog):
21 21 def __init__(self, opener, indexfile, revlog2, linkmapper):
@@ -228,7 +228,7 b' def instance(ui, path, create):'
228 228 if parentpath == cwd:
229 229 parentpath = ''
230 230 else:
231 cwd = os.path.join(cwd,'')
231 cwd = pathutil.normasprefix(cwd)
232 232 if parentpath.startswith(cwd):
233 233 parentpath = parentpath[len(cwd):]
234 234 if path.startswith('union:'):
General Comments 0
You need to be logged in to leave comments. Login now