##// 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 828 expected = 0
829 829 if self.count():
830 830 expected = self.end(self.count() - 1)
831 f = self.opener(self.datafile)
832 f.seek(0, 2)
833 actual = f.tell()
834 return expected - actual
831 try:
832 f = self.opener(self.datafile)
833 f.seek(0, 2)
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