Working directory has unknown parent

Hubert Matthews hubert at oxyware.com
Thu Jan 7 13:48:30 CST 2010


Matt Mackall wrote:
> On Thu, 2010-01-07 at 12:35 -0600, Matt Mackall wrote:
>> On Thu, 2010-01-07 at 16:40 +0000, Hubert Matthews wrote:
>> > $ hg verify
>> > checking changesets
>> > checking manifests
>> > crosschecking files in changesets and manifests
>> > checking files
>> > 0 files, 0 changesets, 0 total revisions
>>
>> Those numbers are revealing.
>
> In particular, those numbers say "I don't see any history here, you've
> got a perfectly fine but empty repo".
>
> Somehow your .hg/requires file got clobbered. Without that file,
> Mercurial looks for the changelog in .hg/data rather
> than .hg/store/data. Fix it like this:
>
> echo "revlogv1" > .hg/require
> echo "store" >> .hg/requires

With the obvious typo on the first of those two commands fixed, this works
and restores my repo to its former glory:

$ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
9 files, 28 changesets, 38 total revisions

Thank you!

-- 
Hubert Matthews         http://www.oxyware.com/
Software Consultant     hubert at oxyware.com




More information about the Mercurial mailing list