##// END OF EJS Templates
verify: do not abort on fully corrupted revlog
Benoit Boissinot -
r7832:1fce19b9 default
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7
7
8 from node import nullid, short
8 from node import nullid, short
9 from i18n import _
9 from i18n import _
10 import revlog, util
10 import revlog, util, error
11
11
12 def verify(repo):
12 def verify(repo):
13 lock = repo.lock()
13 lock = repo.lock()
@@ -172,7 +172,11 b' def _verify(repo):'
172
172
173 files = util.sort(util.unique(filenodes.keys() + filelinkrevs.keys()))
173 files = util.sort(util.unique(filenodes.keys() + filelinkrevs.keys()))
174 for f in files:
174 for f in files:
175 fl = repo.file(f)
175 try:
176 fl = repo.file(f)
177 except error.RevlogError, e:
178 err(0, _("broken revlog! (%s)") % e, f)
179 continue
176
180
177 for ff in fl.files():
181 for ff in fl.files():
178 try:
182 try:
General Comments 0
You need to be logged in to leave comments. Login now