##// END OF EJS Templates
manifest: rewrite find(node, f) in terms of read(node)...
Martin von Zweigbergk -
r24292:b7add2eb default
parent child Browse files
Show More
@@ -350,12 +350,9 b' class manifest(revlog.revlog):'
350 350 def find(self, node, f):
351 351 '''look up entry for a single file efficiently.
352 352 return (node, flags) pair if found, (None, None) if not.'''
353 if node in self._mancache:
354 m = self._mancache[node][0]
355 return m.get(f), m.flags(f)
356 text = self.revision(node)
353 m = self.read(node)
357 354 try:
358 return manifestdict(text).find(f)
355 return m.find(f)
359 356 except KeyError:
360 357 return None, None
361 358
General Comments 0
You need to be logged in to leave comments. Login now