I have a shared repository for which hg verify reveals seven problems attributable to a very old changeset (@2445).
Having failed to repair the repository as described in detail below, I would greatly appreciate any advice about repairing it.
Please note that I have successfully used "hg convert" to create a new repository which passes the hg verify test, but of course the revision
hashes are all different, so this is not really a solution for the
"corrupt" repository that is on bitbucket and that others have cloned.
Problem Description
The repository on bitbucket has been cloned to two machines, one running hg 4.7.2, and the other running hg 5.0.1.
The clone on the hg 4.7.2 machine never exhibited any overt problems, but the upgrade to hg 5.0.1 on the other led me to run "hg verify", which reveals the same 7 errors on both machines.
(On the hg 5.0.1 machine, additional issues involving "fncache" are identified but they go beyond the scope of this question.)
The 7 errors are identified in the section of the "hg verify" output beginning:
crosschecking files in changesets and manifests
checking files
The first error message is:
MI/MI_s15/all/done@2445: dbb0190415fa not in manifests
and all the others refer to the same local rev "@2445".
The final line of the output of "hg verify" is:
(first damaged changeset appears to be 2445)
Attempted Repairs
The following attempts all failed to fix these problems:
a) hg debugrebuildstate -r tip
b) hg debugrebuildfncache # failed with the explanation: "(not rebuilding fncache because repository does not support fncache)"
c) In a new directory on the hg 5.0.1 machine, cloning the repository from its home on bitbucket did not help.
d) In the newly cloned repo created in (c) above:
hg strip --rev 2444
hg pull -u
# `hg verify` shows the same 7 errors
hg debugrebuildfncache # now succeeds
# `hg verify` shows the same 7 errors
Similar attempts likewise failed.
debugindex
In case it helps:
$ hg debugindex MI/MI_s15/all/done
rev linkrev nodeid p1 p2
0 1337 b5d33daadd43 000000000000 000000000000
1 2445 dbb0190415fa 000000000000 000000000000