# HG changeset patch # User Alexis S. L. Carvalho # Date 1173291958 10800 # Node ID a896607d3ec3a1c6033cad8a87d7ba81a6d212e0 # Parent d8515e3742042542d5bcd57a7a389ad1f144dfbe fix manifest.find diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -106,7 +106,7 @@ class manifest(revlog): 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 @@ class manifest(revlog): 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):