Mercurial ate my repo.

Matt Mackall mpm at selenic.com
Mon May 30 23:33:53 UTC 2011


On Tue, 2011-05-31 at 00:13 +0000, nick at njames.co.uk wrote:
> I:\usr\NIK\dev\cgiGen>hg log
> abort: requirement '' not supported!
> 
> I:\usr\NIK\dev\cgiGen>hg stat
> abort: requirement '' not supported!
> 
> I:\usr\NIK\dev\cgiGen>hg diff
> abort: requirement '' not supported!
> 
> I:\usr\NIK\dev\cgiGen>hg -v
> Mercurial Distributed SCM (version 1.8.3)
> (see http://mercurial.selenic.com for more information)
> ...
> Back to 1.5 for me ...

[redirecting to a public mailing list - you can't seriously think that I
personally/privately handle all bug reports, can you?]

What's in the .hg/requires file? This appears to be what happens when
that file contains nothing but a blank line.

Given that Mercurial only ever writes to that file at repo creation
time, this is almost certainly not cause by using 1.8, nor is it
something that can be fixed by downgrading to 1.5.

In short, something (not hg) has clobbered this file and you need to fix
it to be able to read your repo. If your repo was created by 1.5 or
later, it'll probably want the following lines:

revlogv1
store
fncache

Alternately, you can 'hg init' in an empty directory with your favorite
version and copy .hg/requires from that repo.

Then run 'hg verify'.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list