##// END OF EJS Templates
simplify filterfiles when filtering based on a directory...
Benoit Boissinot -
r2486:3ea8111e default
parent child Browse files
Show More
@@ -279,14 +279,10 b' class dirstate(object):'
279 blen = len(b)
279 blen = len(b)
280
280
281 for x in unknown:
281 for x in unknown:
282 bs = bisect.bisect(b, x)
282 bs = bisect.bisect(b, "%s%s" % (x, '/'))
283 if bs != 0 and b[bs-1] == x:
284 ret[x] = self.map[x]
285 continue
286 while bs < blen:
283 while bs < blen:
287 s = b[bs]
284 s = b[bs]
288 if len(s) > len(x) and s.startswith(x):
285 if len(s) > len(x) and s.startswith(x):
289 if s[len(x)] == '/':
290 ret[s] = self.map[s]
286 ret[s] = self.map[s]
291 else:
287 else:
292 break
288 break
General Comments 0
You need to be logged in to leave comments. Login now