[Bug 5783] New: ValueError (too many values to unpack) in mercurial/obsolete.py
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Wed Feb 7 17:30:59 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5783
Bug ID: 5783
Summary: ValueError (too many values to unpack) in
mercurial/obsolete.py
Product: Mercurial
Version: stable branch
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: evolution
Assignee: bugzilla at mercurial-scm.org
Reporter: david.douard at logilab.fr
CC: mercurial-devel at mercurial-scm.org,
pierre-yves.david at ens-lyon.org
In a repository (in which we use obsolete and evolve and topics), we've been
hit by the traceback :
[...]
File
"/home/david/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/obsolete.py",
line 296, in _fm0decodemeta
key, value = l.split(':')
ValueError: too many values to unpack
In my context, the variable 'l' contains 2 ':' chars. The content of the
variabel 'data' in this function is:
'date:1518013344.878793
-3600\x00ef1:0\x00note:6c95ca::a1e17f\x00p1:ed7673f73387b36521da58a87f08e02e4a795ded\x00user:Denis
Laxalde <xxx at yyy.zz>'
I mage a simple hotfix replacing this line by:
key, value = l.split(':', 1)
which seems to work for now.
Note: the problem occurs the same on hg 4.3 (deb package on a jessie machine)
and hg 4.5 (from pip).
David
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list