Fixing a failed integrity check in Mercurial? -
i did hg pull
on repository , brought in changesets. said run hg update
, did. unfortunately, when did that, failed following error message:
abort: integrity check failed on 00manifest.i:173!
when run hg verify
, tells me there number of issues things not in manifest (with slight path obscuring):
>hg verify checking changesets checking manifests crosschecking files in changesets , manifests somewhere1/file1.aspx@172: in changeset not in manifest somewhere2/file1.pdf@170: in changeset not in manifest checking files file3.csproj@172: ee005cae8058 not in manifests somewhere2/file1.pdf@171: 00371c8b9d95 not in manifests somewhere3/file1.ascx@170: 5c921d9bf620 not in manifests somewhere4/file1.ascx@172: 23acbd0efd3a not in manifests somewhere5/file1.aspx@170: ce48ed795067 not in manifests somewhere5/file2.aspx@171: 15d13df4206f not in manifests 1328 files, 174 changesets, 3182 total revisions 8 integrity errors encountered! (first damaged changeset appears 170)
the source repository passes hg verify
fine.
is there way recover integrity check failure or need re-clone repository source (not huge issue in case)? have done cause this, don't again?
well, since first damaged changeset 170, clone local repository 169 , pull source. means pulling 5 changesets.
hg clone -r 169 damagedrepo fixedrepo cd fixedreop hg verify
and then:
hg pull originalsource
as manual recovery of repository corruption, this page expounds on better can. see section 4.
i have found corruption once in while before, , although above documentation says user error, instances on removable usb drives empty working directories. things don't written correctly or interfered somehow: it's not user error. have multiple copies can reclone i've been able away basic fixing.
if simple fix of partial local clone , pulling server doesn't fix it, you're down 2 options after backing changes (if any) bundle or patches:
- manually hacking @ mercurial's files.
- doing new full clone server. easier , faster of two.
Comments
Post a Comment