##// END OF EJS Templates
merge with stable
Matt Mackall -
r15735:5b384b7f merge default
parent child Browse files
Show More
@@ -128,6 +128,7 b' class localrepository(repo.repository):'
128 128 if not path.startswith(self.root):
129 129 return False
130 130 subpath = path[len(self.root) + 1:]
131 normsubpath = util.pconvert(subpath)
131 132
132 133 # XXX: Checking against the current working copy is wrong in
133 134 # the sense that it can reject things like
@@ -149,9 +150,9 b' class localrepository(repo.repository):'
149 150 ctx = self[None]
150 151 parts = util.splitpath(subpath)
151 152 while parts:
152 prefix = os.sep.join(parts)
153 prefix = '/'.join(parts)
153 154 if prefix in ctx.substate:
154 if prefix == subpath:
155 if prefix == normsubpath:
155 156 return True
156 157 else:
157 158 sub = ctx.sub(prefix)
@@ -85,6 +85,7 b' class pathauditor(object):'
85 85 '''Check the relative path.
86 86 path may contain a pattern (e.g. foodir/**.txt)'''
87 87
88 path = util.localpath(path)
88 89 normpath = self.normcase(path)
89 90 if normpath in self.audited:
90 91 return
@@ -92,7 +92,7 b' def state(ctx, ui):'
92 92 src = remapped
93 93
94 94 src = remap(src)
95 state[path] = (src.strip(), rev.get(path, ''), kind)
95 state[util.pconvert(path)] = (src.strip(), rev.get(path, ''), kind)
96 96
97 97 return state
98 98
General Comments 0
You need to be logged in to leave comments. Login now