[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial
Subject:    Re: hg pull unknown parent and hg verify unknown exception
From:       Matt Mackall <mpm () selenic ! com>
Date:       2007-11-23 19:46:50
Message-ID: 20071123194650.GD19691 () waste ! org
[Download RAW message or body]

On Fri, Nov 23, 2007 at 05:37:55PM +0200, revel wrote:
> Hello,
> 
> I've just encountered problem using hg repository which might be a bug.
> The story starts with network problems, which resulted in aborts and
> rollbacks during hg pull. Now, hg pull ends with
> adding file changes
> transaction abort!
> rollback completed
> abort: unknown parent 884d5e515252!
> 
> and hg verify crushes
> checking changesets
> checking manifests
> crosschecking files in changesets and manifests
> checking files
> ** unknown exception encountered, details follow
> ** report bug details to http://www.selenic.com/mercurial/bts
> ** or mercurial@selenic.com
> ** Mercurial Distributed SCM (version 0.9.5)
...
>     nodemap[e[4]], nodemap[e[5]], e[6])
> KeyError: 't6\x88:\xc9G x\xa8\x12\xe8B\xa6\x86V\x04\x81\xbd\x98L'

Looks like you've got a damaged index.

Try verify again with this patch:

diff -r a3df02cd4a35 mercurial/revlog.py
--- a/mercurial/revlog.py       Wed Nov 21 13:26:18 2007 -0600
+++ b/mercurial/revlog.py       Fri Nov 23 13:44:15 2007 -0600
@@ -321,7 +321,7 @@ class revlogoldio(object):
             e = _unpack(indexformatv0, cur)
             # transform to revlogv1 format
             e2 = (offset_type(e[0], 0), e[1], -1, e[2], e[3],
-                  nodemap[e[4]], nodemap[e[5]], e[6])
+                  nodemap.get(e[4], nullid), nodemap(e[5], nullid), e[6])
             index.append(e2)
             nodemap[e[6]] = n
             n += 1

-- 
Mathematics is the supreme nostalgia of our time.
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic