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: bugzi...@mercurial-scm.org
          Reporter: david.dou...@logilab.fr
                CC: mercurial-devel@mercurial-scm.org,
                    pierre-yves.da...@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 <x...@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.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to