Show More
@@ -279,14 +279,10 b' class dirstate(object):' | |||
|
279 | 279 | blen = len(b) |
|
280 | 280 | |
|
281 | 281 | for x in unknown: |
|
282 | bs = bisect.bisect(b, x) | |
|
283 | if bs != 0 and b[bs-1] == x: | |
|
284 | ret[x] = self.map[x] | |
|
285 | continue | |
|
282 | bs = bisect.bisect(b, "%s%s" % (x, '/')) | |
|
286 | 283 | while bs < blen: |
|
287 | 284 | s = b[bs] |
|
288 | 285 | if len(s) > len(x) and s.startswith(x): |
|
289 | if s[len(x)] == '/': | |
|
290 | 286 |
|
|
291 | 287 | else: |
|
292 | 288 | break |
General Comments 0
You need to be logged in to leave comments.
Login now