Working directory has unknown parent
Matt Mackall
mpm at selenic.com
Thu Jan 7 13:40:42 CST 2010
On Thu, 2010-01-07 at 12:35 -0600, Matt Mackall wrote:
> On Thu, 2010-01-07 at 16:40 +0000, Hubert Matthews wrote:
> > One of my repositories has got itself in a state that I believe is the
> > same as Issue 1933 on the bug list
> > (http://mercurial.selenic.com/bts/issue1933). I'm using 1.4.1 on a local
> > ext3-formatted disk running Fedora Core 11. The working directory and the
> > contents of the .hg directory tree are present and seem sensible.
> >
> > $ uname -a
> > Linux maisy.oxyware.net 2.6.30.10-105.fc11.i686.PAE #1 SMP Thu Dec 24
> > 16:41:17 UTC 2009 i686 i686 i386 GNU/Linux
> >
> > $ rpm -q mercurial
> > mercurial-1.4-1.fc11.i586
> >
> > $ 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
--
http://selenic.com : development and support for Mercurial and Linux
More information about the Mercurial
mailing list