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 |
|
|
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