##// END OF EJS Templates
Handle empty logs in repo.checksize
Matt Mackall -
r1494:249ca10d default
parent child Browse files
Show More
@@ -828,7 +828,14 b' class revlog:'
828 expected = 0
828 expected = 0
829 if self.count():
829 if self.count():
830 expected = self.end(self.count() - 1)
830 expected = self.end(self.count() - 1)
831 f = self.opener(self.datafile)
831 try:
832 f.seek(0, 2)
832 f = self.opener(self.datafile)
833 actual = f.tell()
833 f.seek(0, 2)
834 return expected - actual
834 actual = f.tell()
835 return expected - actual
836 except IOError, inst:
837 if inst.errno == errno.ENOENT:
838 return 0
839 raise
840
841
General Comments 0
You need to be logged in to leave comments. Login now