Mercurial > public > mercurial-scm > hg
diff mercurial/manifest.py @ 4159:a896607d3ec3
fix manifest.find
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 07 Mar 2007 15:25:58 -0300 |
parents | 6b4127c7d52a |
children | 1b5c38e9d7aa |
line wrap: on
line diff
--- 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):