##// END OF EJS Templates
fix manifest.find
Alexis S. L. Carvalho -
r4159:a896607d default
parent child Browse files
Show More
@@ -106,7 +106,7 b' class manifest(revlog):'
106
106
107 def find(self, node, f):
107 def find(self, node, f):
108 '''look up entry for a single file efficiently.
108 '''look up entry for a single file efficiently.
109 return (node, flag) pair if found, (None, None) if not.'''
109 return (node, flags) pair if found, (None, None) if not.'''
110 if self.mapcache and node == self.mapcache[0]:
110 if self.mapcache and node == self.mapcache[0]:
111 return self.mapcache[1].get(f), self.mapcache[1].flags(f)
111 return self.mapcache[1].get(f), self.mapcache[1].flags(f)
112 text = self.revision(node)
112 text = self.revision(node)
@@ -115,7 +115,7 b' class manifest(revlog):'
115 return None, None
115 return None, None
116 l = text[start:end]
116 l = text[start:end]
117 f, n = l.split('\0')
117 f, n = l.split('\0')
118 return bin(n[:40]), n[40:-1] == 'x'
118 return bin(n[:40]), n[40:-1]
119
119
120 def add(self, map, transaction, link, p1=None, p2=None,
120 def add(self, map, transaction, link, p1=None, p2=None,
121 changed=None):
121 changed=None):
General Comments 0
You need to be logged in to leave comments. Login now