Show More
@@ -128,6 +128,7 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 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 = |
|
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 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 |
General Comments 0
You need to be logged in to leave comments.
Login now