[issue519] dirstate.py: ValueError: too many values to unpack

JP mercurial-bugs at selenic.com
Wed Mar 21 12:31:12 CDT 2007


New submission from JP <jp at garble.org>:

Mercurial version 0.9.1
OpenBSD 3.6 i386

Somehow my mercurial repository got messed up, not quite sure how to reproduce 
yet, but wanted to get it out there as I've seen nothing like it in the 
current bugs.  Here's the state of the current repository.  I can attach more 
files as needed.

jp(ksh):/tmp/hgtest# ls -al
total 44
drwxr-xr-x  3 root  wheel    512 Mar 21 17:22 .
drwxrwxrwt  5 root  wheel    512 Mar 21 17:22 ..
drwxr-xr-x  3 root  wheel    512 Mar 21 17:19 .hg
-rwxr-xr-x  1 root  wheel  15360 Mar 21 17:04 interface.db
jp(ksh):/tmp/hgtest# ls -al .hg
total 32
drwxr-xr-x  3 root  wheel  512 Mar 21 17:19 .
drwxr-xr-x  3 root  wheel  512 Mar 21 17:22 ..
-rwxr-xr-x  1 root  wheel  493 Mar 16 19:30 00changelog.i
-rwxr-xr-x  1 root  wheel  359 Mar 16 19:30 00manifest.i
drwxr-xr-x  2 root  wheel  512 Mar 13 15:49 data
-rwxr-xr-x  1 root  wheel   69 Mar 16 19:30 dirstate
-rwxr-xr-x  1 root  wheel   60 Mar 16 19:30 undo
-rwxr-xr-x  1 root  wheel   69 Mar 16 19:30 undo.dirstate
jp(ksh):/tmp/hgtest# hg stat interface.db
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.1)
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 12, in ?
    commands.run()
  File "/usr/local/lib/python2.4/site-packages/mercurial/commands.py", line 
3266, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/local/lib/python2.4/site-packages/mercurial/commands.py", line 
3465, in dispatch
    return d()
  File "/usr/local/lib/python2.4/site-packages/mercurial/commands.py", line 
3424, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/usr/local/lib/python2.4/site-packages/mercurial/commands.py", line 
2636, in status
    show_ignored=show_ignored)]
  File "/usr/local/lib/python2.4/site-packages/mercurial/localrepo.py", line 
697, in changes
    wlock = self.wlock(wait=0)
  File "/usr/local/lib/python2.4/site-packages/mercurial/localrepo.py", line 
439, in wlock
    desc=_('working directory of %s') % self.origroot)
  File "/usr/local/lib/python2.4/site-packages/mercurial/localrepo.py", line 
429, in do_lock
    acquirefn()
  File "/usr/local/lib/python2.4/site-packages/mercurial/localrepo.py", line 
407, in wreload
    self.dirstate.read()
  File "/usr/local/lib/python2.4/site-packages/mercurial/dirstate.py", line 
188, in read
    self.parse(st)
  File "/usr/local/lib/python2.4/site-packages/mercurial/dirstate.py", line 
177, in parse
    f, c = f.split('\0')
ValueError: too many values to unpack
jp(ksh):/tmp/hgtest# hg log
changeset:   3:000000000000
tag:         tip
user:
date:        Thu Jan 01 00:00:00 1970 +0000

changeset:   2:000000000000
tag:         tip
user:
date:        Thu Jan 01 00:00:00 1970 +0000

changeset:   1:a8498dda330c
user:        admin at blender
date:        Fri Mar 16 19:00:06 2007 +0000
summary:     145 interfaces inserted

changeset:   0:8b458aa07179
user:        admin at blender
date:        Tue Mar 13 15:49:45 2007 +0000
summary:     Initial Revision

jp(ksh):/tmp/hgtest#

----------
messages: 2916
nosy: polandj
priority: urgent
status: unread
title: dirstate.py: ValueError: too many values to unpack

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue519>
____________________________________________________



More information about the Mercurial-devel mailing list