[issue1892] Update or Commit on top repository: Too many values to unpack

william ledoux bugs at mercurial.selenic.com
Thu Oct 29 10:32:12 UTC 2009


New submission from william ledoux <william.ledoux at gmail.com>:

I have a repository with around 50 subrepositories. The problem is that when
I try to commit or update the top repository, I have the following log,
ended with "ValueError: too many values to unpack".
I can commit or update any of the subrepositories, only the top one is faulty.
I also run hg verify on the top repository and every subrepository, and it
was fine.

I don't know if it is linked, but I recently changed the order of some
subrepositories in the .hgsub file.

Below is the log:

$hg --debug update
resolving manifests
 overwrite False partial False
 ancestor aafd30878efe local aafd30878efe+ remote aafd30878efe
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.3.1)
** Extensions loaded: convert
Traceback (most recent call last):
  File "/usr/bin/hg", line 5, in <module>
    pkg_resources.run_script('mercurial==1.3.1', 'hg')
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 448, in
run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1166, in
run_script
    execfile(script_filename, namespace, namespace)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/EGG-INFO/scripts/hg",
line 27, in <module>
    mercurial.dispatch.run()
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 27, in dispatch
    return _runcatch(u, args)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 43, in _runcatch
    return _dispatch(ui, args)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 449, in _dispatch
    return runcommand(lui, repo, cmd, fullargs, ui, options, d)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 317, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 501, in _runcommand
    return checkargs()
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 454, in checkargs
    return cmdfunc()
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/dispatch.py",
line 448, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/util.py",
line 402, in check
    return func(*args, **kwargs)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/commands.py",
line 3056, in update
    return hg.update(repo, rev)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/hg.py",
line 331, in update
    stats = _merge.update(repo, node, False, False, None)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/merge.py",
line 468, in update
    stats = applyupdates(repo, action, wc, p2)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/merge.py",
line 244, in applyupdates
    substate = wctx.substate # prime
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/util.py",
line 150, in __get__
    result = self.func(obj)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/context.py",
line 78, in substate
    return subrepo.state(self)
  File
"/usr/lib/python2.5/site-packages/mercurial-1.3.1-py2.5-linux-i686.egg/mercurial/subrepo.py",
line 30, in state
    revision, path = l.split()
ValueError: too many values to unpack

----------
messages: 10848
nosy: william.ledoux
priority: bug
status: unread
title: Update or Commit on top repository: Too many values to unpack
topic: 1.3.1, subrepositories, update

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



More information about the Mercurial-devel mailing list