Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 1493:1a216cb4ee64
verify: add check for mismatch of index and data length
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 02 Nov 2005 19:26:23 -0800 |
parents | 0847c45ffee6 |
children | 249ca10d37f4 |
comparison
equal
deleted
inserted
replaced
1492:5f0522d31967 | 1493:1a216cb4ee64 |
---|---|
821 end = self.end(t) | 821 end = self.end(t) |
822 | 822 |
823 dfh.close() | 823 dfh.close() |
824 ifh.close() | 824 ifh.close() |
825 return node | 825 return node |
826 | |
827 def checksize(self): | |
828 expected = 0 | |
829 if self.count(): | |
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 |