Mercurial > hg-stable
changeset 12024:56a7721ee3ec
revlog: add rawsize(), identical to size() but not subclassed by filelog
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 23 Aug 2010 13:24:19 +0200 |
parents | 44c22dc193a4 |
children | 2315a95ee887 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Aug 22 23:17:17 2010 +0200 +++ b/mercurial/revlog.py Mon Aug 23 13:24:19 2010 +0200 @@ -550,8 +550,7 @@ return self.index[rev][3] def flags(self, rev): return self.index[rev][0] & 0xFFFF - - def size(self, rev): + def rawsize(self, rev): """return the length of the uncompressed text for a given revision""" l = self.index[rev][2] if l >= 0: @@ -559,6 +558,7 @@ t = self.revision(self.node(rev)) return len(t) + size = rawsize def reachable(self, node, stop=None): """return the set of all nodes ancestral to a given node, including