store: restore getsize method
This method was created for subclassing.
--- a/mercurial/store.py Mon Oct 01 02:44:46 2012 +0200
+++ b/mercurial/store.py Mon Oct 08 16:46:11 2012 -0500
@@ -470,14 +470,16 @@
def join(self, f):
return self.pathsep + self.encode(f)
+ def getsize(self, path):
+ return self.rawvfs.stat(path).st_size
+
def datafiles(self):
rewrite = False
existing = []
- getstat = self.rawvfs.stat
for f in sorted(self.fncache):
ef = self.encode(f)
try:
- yield f, ef, getstat(ef).st_size
+ yield f, ef, self.getsize(ef)
existing.append(f)
except OSError, err:
if err.errno != errno.ENOENT: