Many missing revlogs, do we have a problem?
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Wed Jun 17 18:19:43 UTC 2015
On 06/17/2015 09:57 AM, Matt Mackall wrote:
> On Wed, 2015-06-17 at 16:58 +0200, Alban Hertroys wrote:
>> I just tried a synchronize with a local copy of our master repo and it
>> failed with "empty or missing revlog". So I figured there might be a few
>> corrupted revlogs somewhere and did an hg verify on our master repo (using
>> tortoisehg 3.3). I was NOT prepared for what it told me, an excerpt from
>> the end of the (long) list:
>>
>> data/xxx_austrian_env/SalesreportPointSAustriaS.fex.i at 1883: missing
>> revlog!
>> data/xxx_austrian_env/SalesreportPointSAustriaS_RC.fex.i at 1883: missing
>> revlog!
>> data/xxx_austrian_env/SalesreportPointSAustriaStart.fex.i at 1883: missing
>> revlog!
>> data/xxx_austrian_env/points.csv.i at 1883: missing revlog!
>> 17922 files, 2741 changesets, 26977 total revisions
>> 13 warnings encountered!
>> 17985 integrity errors encountered!
>> (first damaged changeset appears to be 0)
>>
>> It's telling me that we have even more integrity errors than we have
>> files. Ouch!
>>
>> Last time I synchronized to my local copy was sometime last week and that
>> went fine. Now suddenly we're in _this_ situation, and of course just as
>> we're about to release the committed code to our new production server. I
>> find it rather hard to believe that hg verify is telling me the truth,
>> frankly - it doesn't make sense...
>>
>> Any idea how this might have happened?
>
> Looks like someone/something deleted all the files on your server. Take
> a look at .hg/store/data on both the client and server.
A common way to achieve that is to run a recursive deletion command of
all file matching a pattern, without excluding the `.hg` directory.
(another cousin of this is using recursive search and replace). Do you
have any such operation running?
--
Pierre-Yves David
More information about the Mercurial
mailing list