fix manifest.find
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Wed, 07 Mar 2007 15:25:58 -0300
changeset 4159 a896607d3ec3
parent 4158 d8515e374204
child 4160 b4bd2f3ea347
fix manifest.find
mercurial/manifest.py
--- a/mercurial/manifest.py	Wed Mar 07 15:06:57 2007 +0100
+++ b/mercurial/manifest.py	Wed Mar 07 15:25:58 2007 -0300
@@ -106,7 +106,7 @@
 
     def find(self, node, f):
         '''look up entry for a single file efficiently.
-        return (node, flag) pair if found, (None, None) if not.'''
+        return (node, flags) pair if found, (None, None) if not.'''
         if self.mapcache and node == self.mapcache[0]:
             return self.mapcache[1].get(f), self.mapcache[1].flags(f)
         text = self.revision(node)
@@ -115,7 +115,7 @@
             return None, None
         l = text[start:end]
         f, n = l.split('\0')
-        return bin(n[:40]), n[40:-1] == 'x'
+        return bin(n[:40]), n[40:-1]
 
     def add(self, map, transaction, link, p1=None, p2=None,
             changed=None):