revlog: add rawsize(), identical to size() but not subclassed by filelog
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 23 Aug 2010 13:24:19 +0200
changeset 12024 56a7721ee3ec
parent 12023 44c22dc193a4
child 12025 2315a95ee887
revlog: add rawsize(), identical to size() but not subclassed by filelog
mercurial/revlog.py
--- 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