Show More
@@ -173,6 +173,7 b' def _verify(repo):' | |||||
173 | elif size > 0: |
|
173 | elif size > 0: | |
174 | storefiles.add(f) |
|
174 | storefiles.add(f) | |
175 |
|
175 | |||
|
176 | lrugetctx = util.lrucachefunc(repo.changectx) | |||
176 | files = sorted(set(filenodes) | set(filelinkrevs)) |
|
177 | files = sorted(set(filenodes) | set(filelinkrevs)) | |
177 | for f in files: |
|
178 | for f in files: | |
178 | try: |
|
179 | try: | |
@@ -224,6 +225,16 b' def _verify(repo):' | |||||
224 | # check renames |
|
225 | # check renames | |
225 | try: |
|
226 | try: | |
226 | if rp: |
|
227 | if rp: | |
|
228 | if lr is not None and ui.verbose: | |||
|
229 | ctx = lrugetctx(lr) | |||
|
230 | found = False | |||
|
231 | for pctx in ctx.parents(): | |||
|
232 | if rp[0] in pctx: | |||
|
233 | found = True | |||
|
234 | break | |||
|
235 | if not found: | |||
|
236 | warn(_("warning: copy source of '%s' not" | |||
|
237 | " in parents of %s") % (f, ctx)) | |||
227 | fl2 = repo.file(rp[0]) |
|
238 | fl2 = repo.file(rp[0]) | |
228 | if not len(fl2): |
|
239 | if not len(fl2): | |
229 | err(lr, _("empty or missing copy source revlog %s:%s") |
|
240 | err(lr, _("empty or missing copy source revlog %s:%s") |
General Comments 0
You need to be logged in to leave comments.
Login now