Show More
@@ -279,15 +279,11 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 |
|
|
|
290 | ret[s] = self.map[s] | |
|
286 | ret[s] = self.map[s] | |
|
291 | 287 | else: |
|
292 | 288 | break |
|
293 | 289 | bs += 1 |
General Comments 0
You need to be logged in to leave comments.
Login now