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