False integrity errors?

Guy Brand gb at isis.u-strasbg.fr
Tue Jul 29 11:37:43 CDT 2008


Matt Mackall wrote:

> Can you do:
> 
> $ hg debugindex .hg/store/data/_makefile.i

bug ~/rbt# hg debugindex .hg/store/data/_makefile.i
   rev    offset  length   base linkrev nodeid       p1           p2
     0         0     461      0       2 3490c50a0fb4 000000000000 000000000000
     1       461     102      0       3 a025666a49ca 3490c50a0fb4 000000000000
     2       563      25      0       9 89300da0889e a025666a49ca 000000000000
     3       588      95      0      15 fbfbcbbd2a7c 89300da0889e 000000000000
     4       683      31      0      17 014d028e46d1 fbfbcbbd2a7c 000000000000
     5       714      88      0      18 e790616853be 014d028e46d1 000000000000

> And:
> 
> $ hg cat -r 2 Makefile | wc

bug ~/rbt# hg cat -r 2 Makefile | wc
      46     103     863

Numbers are the same with revision 6751 and 6752.

> If this is a long-lived repo, you can try a clone --pull and see if the
> clone verifies cleanly.

If I clone the repo, the problem vanishes and wc output differs:

bug /tmp/rbt# hg cat -r 2 Makefile | wc
      46      97     814

I will clone other repositories showing the same errors. Strangely I
did no change to all the repositories affected as I mainly keep them
for archives.

Thanks for your quick answer Matt.

-- 
  bug



More information about the Mercurial-devel mailing list