##// END OF EJS Templates
verify: avoid exception on missing file revlog...
Henrik Stuart -
r8291:f5c1a909 default
parent child Browse files
Show More
@@ -173,7 +173,17 b' def _verify(repo):'
173
173
174 files = sorted(set(filenodes) | set(filelinkrevs))
174 files = sorted(set(filenodes) | set(filelinkrevs))
175 for f in files:
175 for f in files:
176 lr = filelinkrevs[f][0]
176 try:
177 linkrevs = filelinkrevs[f]
178 except KeyError:
179 # in manifest but not in changelog
180 linkrevs = []
181
182 if linkrevs:
183 lr = linkrevs[0]
184 else:
185 lr = None
186
177 try:
187 try:
178 fl = repo.file(f)
188 fl = repo.file(f)
179 except error.RevlogError, e:
189 except error.RevlogError, e:
@@ -191,7 +201,7 b' def _verify(repo):'
191 for i in fl:
201 for i in fl:
192 revisions += 1
202 revisions += 1
193 n = fl.node(i)
203 n = fl.node(i)
194 lr = checkentry(fl, i, n, seen, filelinkrevs.get(f, []), f)
204 lr = checkentry(fl, i, n, seen, linkrevs, f)
195 if f in filenodes:
205 if f in filenodes:
196 if havemf and n not in filenodes[f]:
206 if havemf and n not in filenodes[f]:
197 err(lr, _("%s not in manifests") % (short(n)), f)
207 err(lr, _("%s not in manifests") % (short(n)), f)
General Comments 0
You need to be logged in to leave comments. Login now