[issue2225] Index corruption

Joseph Mitchell bugs at mercurial.selenic.com
Thu Jun 3 18:02:27 UTC 2010


New submission from Joseph Mitchell <jwmitchell at mbartek.com>:

This may or may not be related to issue 2031. 

Somehow I'm doing something that is corrupting my local repository. I'm new
to hg, so there could be something pathological in my setup - thankfully
only a test setup so far. I'm working on Windows and accessing hg through a
combination of TortoiseHg and the command line interface. 

The first time I ran 'hg verify' I saw that my repo was corrupted, which I
though was something I'd caused as I'd set it up. I removed it completely
and did a fresh 'hg clone' from my bitbucket account. This gave me a clean
version, and 'hg verify' produced no errors. 

I've done some mods to the local repo over the last few days, and am trying
to push it to a central server through TortoiseHg. This returned the error
listed below:

pushing to ssh://www-user@172.18.60.90:22//var/hg/repos
searching for changes
index data/play/joe/testing_Interface00/BF_testingInterface3.xml~.i unknown
format 36821
remote: ** unknown exception encountered, details follow
remote: ** report bug details to http://mercurial.selenic.com/bts/
remote: ** or mercurial at selenic.com
remote: ** Mercurial Distributed SCM (version 1.5.3)
remote: ** Extensions loaded: 
remote: Traceback (most recent call last):
remote:   File "/usr/bin/hg", line 27, in ?
remote:     mercurial.dispatch.run()
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 16, in run
remote:     sys.exit(dispatch(sys.argv[1:]))
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 30, in dispatch
remote:     return _runcatch(u, args)
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 50, in _runcatch
remote:     return _dispatch(ui, args)
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 470, in _dispatch
remote:     return runcommand(lui, repo, cmd, fullargs, ui, options, d)
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 340, in runcommand
remote:     ret = _runcommand(ui, options, cmd, d)
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 521, in _runcommand
remote:     return checkargs()
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 475, in checkargs
remote:     return cmdfunc()
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/dispatch.py",
line 469, in <lambda>
remote:     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/util.py", line
401, in check
remote:     return func(*args, **kwargs)
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/commands.py",
line 2901, in serve
remote:     s.serve_forever()
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/sshserver.py",
line 45, in serve_forever
remote:     while self.serve_one():
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/sshserver.py",
line 57, in serve_one
remote:     impl()
remote:   File "/usr/lib64/python2.4/site-packages/mercurial/sshserver.py",
line 189, in do_unbundle
remote:     count = int(self.fin.readline())
remote: ValueError: invalid literal for int(): 
----

This raised the question of whether my local repo was OK. Running 'hg
verify' again gave a pretty clear answer to that:
C:\hgfiles0\play>hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
 play/joe/CHANGES at 0: broken revlog! (index data/play/joe/CHANGES.i unknown
format 63878)
 play/joe/CHANGES4lois at 0: broken revlog! (index data/play/joe/CHANGES4lois.i
unknown format 63878)
 play/joe/Testtest/anything.xml at 0: broken revlog! (index
data/play/joe/Testtest/anything.xml.i unknown format 4079)
 play/joe/Testtest/anything.xml~@0: broken revlog! (index
data/play/joe/Testtest/anything.xml~.i unknown format 4079)
 play/joe/tI3_temp/BF_testingInterface5.var at 0: broken revlog! (index
data/play/joe/tI3_temp/BF_testingInterface5.var.i unknown for
mat 35304)
 play/joe/tI3_temp/BF_testingInterface5.var~@0: broken revlog! (index
data/play/joe/tI3_temp/BF_testingInterface5.var~.i unknown f
ormat 35304)
 play/joe/testing Interface/bld.log at 0: broken revlog! (index
data/play/joe/testing Interface/bld.log.i unknown format 62077)
 play/joe/testing Interface/bld2.log at 0: broken revlog! (index
data/play/joe/testing Interface/bld2.log.i unknown format 33970)
 play/joe/testing Interface/bld3.log at 0: broken revlog! (index
data/play/joe/testing Interface/bld3.log.i unknown format 33970)
 play/joe/testing Interface/testing Interface.xml at 0: broken revlog! (index
data/play/joe/testing Interface/testing Interface.xml.i
 unknown format 28803)
 play/joe/testing_Interface0/BF_testingInterface.xml at 0: broken revlog!
(index data/play/joe/testing_Interface0/BF_testingInterface
.xml.i unknown format 61184)
 play/joe/testing_Interface0/BF_testingInterface3.xml at 0: broken revlog!
(index data/play/joe/testing_Interface0/BF_testingInterfac
e3.xml.i unknown format 11122)
 play/joe/testing_Interface0/BF_testingInterface5.var at 0: broken revlog!
(index data/play/joe/testing_Interface0/BF_testingInterfac
e5.var.i unknown format 12168)
 play/joe/testing_Interface0/BF_testingInterface5.var~@0: broken revlog!
(index data/play/joe/testing_Interface0/BF_testingInterfa
ce5.var~.i unknown format 35304)
 play/joe/testing_Interface0/BF_testingInterface5.xml at 0: broken revlog!
(index data/play/joe/testing_Interface0/BF_testingInterfac
e5.xml.i unknown format 35304)
 play/joe/testing_Interface0/BS_testingInterface3.xml at 0: broken revlog!
(index data/play/joe/testing_Interface0/BS_testingInterfac
e3.xml.i unknown format 31000)
 play/joe/testing_Interface00/BF_testingInterface.xml at 0: broken revlog!
(index data/play/joe/testing_Interface00/BF_testingInterfa
ce.xml.i unknown format 61184)
 play/joe/testing_Interface00/BF_testingInterface3.xml at 0: broken revlog!
(index data/play/joe/testing_Interface00/BF_testingInterf
ace3.xml.i unknown format 7933)
 play/joe/testing_Interface00/BF_testingInterface3.xml~@0: broken revlog!
(index data/play/joe/testing_Interface00/BF_testingInter
face3.xml~.i unknown format 36821)
 play/joe/testing_Interface00/BF_testingInterface5.var at 0: broken revlog!
(index data/play/joe/testing_Interface00/BF_testingInterf
ace5.var.i unknown format 35304)
 play/joe/testing_Interface00/BF_testingInterface5.xml at 0: broken revlog!
(index data/play/joe/testing_Interface00/BF_testingInterf
ace5.xml.i unknown format 35304)
 play/joe/testing_Interface00/BS_testingInterface3.xml at 0: broken revlog!
(index data/play/joe/testing_Interface00/BS_testingInterf
ace3.xml.i unknown format 31000)
 play/joe/testing_Interface2/BF_testingInterface.xml at 0: broken revlog!
(index data/play/joe/testing_Interface2/BF_testingInterface
.xml.i unknown format 61184)
 play/joe/testing_Interface2/BF_testingInterface3.xml at 0: broken revlog!
(index data/play/joe/testing_Interface2/BF_testingInterfac
e3.xml.i unknown format 1966)
warning: orphan revlog
'data/play/joe/testing_Interface00/BF_testingInterface5.var.i'
warning: orphan revlog 'data/play/joe/testing Interface/bld.log.i'
warning: orphan revlog
'data/play/joe/testing_Interface0/BS_testingInterface3.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface00/BS_testingInterface3.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface00/BF_testingInterface.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface2/BF_testingInterface3.xml.i'
warning: orphan revlog 'data/play/joe/tI3_temp/BF_testingInterface5.var.i'
warning: orphan revlog 'data/play/joe/testing Interface/bld3.log.i'
warning: orphan revlog
'data/play/joe/testing_Interface0/BF_testingInterface.xml.i'
warning: orphan revlog 'data/play/joe/testing Interface/testing Interface.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface00/BF_testingInterface3.xml~.i'
warning: orphan revlog 'data/play/joe/testing Interface/bld2.log.i'
warning: orphan revlog
'data/play/joe/testing_Interface00/BF_testingInterface5.xml.i'
warning: orphan revlog 'data/play/joe/Testtest/anything.xml~.i'
warning: orphan revlog 'data/play/joe/CHANGES.i'
warning: orphan revlog 'data/play/joe/Testtest/anything.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface0/BF_testingInterface5.var~.i'
warning: orphan revlog
'data/play/joe/testing_Interface00/BF_testingInterface3.xml.i'
warning: orphan revlog 'data/play/joe/tI3_temp/BF_testingInterface5.var~.i'
warning: orphan revlog
'data/play/joe/testing_Interface0/BF_testingInterface5.var.i'
warning: orphan revlog 'data/play/joe/CHANGES4lois.i'
warning: orphan revlog
'data/play/joe/testing_Interface0/BF_testingInterface5.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface0/BF_testingInterface3.xml.i'
warning: orphan revlog
'data/play/joe/testing_Interface2/BF_testingInterface.xml.i'
81 files, 5 changesets, 59 total revisions
24 warnings encountered!
24 integrity errors encountered!
(first damaged changeset appears to be 0)

-----

Any idea what could be going on or how the repository is getting corrupted?

----------
messages: 12737
nosy: jw8mitchell
priority: urgent
status: unread
title: Index corruption

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2225>
____________________________________________________


More information about the Mercurial-devel mailing list