mercurial/filelog.py
changeset 3591 c2f82db92ae1
parent 3586 66a17364c30e
equal deleted inserted replaced
3586:66a17364c30e 3591:c2f82db92ae1
    63         m = self._readmeta(node)
    63         m = self._readmeta(node)
    64         if m and m.has_key("copy"):
    64         if m and m.has_key("copy"):
    65             return (m["copy"], bin(m["copyrev"]))
    65             return (m["copy"], bin(m["copyrev"]))
    66         return False
    66         return False
    67 
    67 
    68     def len(self, rev):
    68     def size(self, rev):
    69         """return the len of a given revision"""
    69         """return the size of a given revision"""
    70 
    70 
    71         # for revisions with renames, we have to go the slow way
    71         # for revisions with renames, we have to go the slow way
    72         node = self.node(rev)
    72         node = self.node(rev)
    73         if self.renamed(node):
    73         if self.renamed(node):
    74             return len(self.read(node))
    74             return len(self.read(node))
    75 
    75 
    76         return self.size(rev)
    76         return revlog.size(self, rev)
    77 
    77 
    78     def cmp(self, node, text):
    78     def cmp(self, node, text):
    79         """compare text with a given file revision"""
    79         """compare text with a given file revision"""
    80 
    80 
    81         # for renames, we have to go the slow way
    81         # for renames, we have to go the slow way