# HG changeset patch # User Matt Mackall # Date 2006-12-01 08:35:46 # Node ID d626fc9e3985821d622e089a0e14f7ef922e3046 # Parent 3a099154b110c0453ee2419acc68fdcf9da91eac verify: add rename link checking diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -179,6 +179,18 @@ def verify(repo): (f, short(n), short(p1))) nodes[n] = 1 + # check renames + try: + rp = fl.renamed(n) + if rp: + fl2 = repo.file(rp[0]) + rev = fl2.rev(rp[1]) + except KeyboardInterrupt: + repo.ui.warn(_("interrupted")) + raise + except Exception, inst: + err(_("checking rename on file %s %s: %s") % (f, short(n), inst)) + # cross-check for node in filenodes[f]: err(_("node %s in manifests not in %s") % (hex(node), f))