Working directory has unknown parent

Abderrahim Kitouni a.kitouni at gmail.com
Thu Jan 7 10:57:23 CST 2010


Hi,

2010/1/7 Hubert Matthews <hubert at oxyware.com>:
> 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
>
> $ hg status
> abort: working directory has unknown parent '436dcc9b0b14'!
This seems like a dirstate corruption, you should be able to clone it
since it passes verify.

(alternatively, removing .hg/dirstate and running update -C (will lose
uncommited changes) should work as well)

HTH,
Abderrahim


More information about the Mercurial mailing list