diff mercurial/repository.py @ 39880:d909c44d29e1

filelog: stop proxying rawsize() (API) This method is no longer used by external consumers. The API is quite low-level and is effectively len(revision(raw=True)). I don't see a compelling reason to keep it around. Let's drop the API and make the file storage interface simpler. Differential Revision: https://phab.mercurial-scm.org/D4750
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 24 Sep 2018 12:49:17 -0700
parents 2ac4f3e97813
children a269fa55467e
line wrap: on
line diff
--- a/mercurial/repository.py	Mon Sep 24 12:42:03 2018 -0700
+++ b/mercurial/repository.py	Mon Sep 24 12:49:17 2018 -0700
@@ -542,14 +542,10 @@
     This complements ``ifileindex`` and provides an interface for accessing
     data for a tracked file.
     """
-    def rawsize(rev):
-        """The size of the fulltext data for a revision as stored."""
-
     def size(rev):
         """Obtain the fulltext size of file data.
 
-        Any metadata is excluded from size measurements. Use ``rawsize()`` if
-        metadata size is important.
+        Any metadata is excluded from size measurements.
         """
 
     def checkhash(fulltext, node, p1=None, p2=None, rev=None):