Open
Bug 1323534
Opened 8 years ago
Updated 1 year ago
|mach mercurial-setup| fails with inscrutable error
Categories
(Developer Services :: Mercurial: configwizard, defect)
Developer Services
Mercurial: configwizard
Tracking
(Not tracked)
NEW
People
(Reporter: froydnj, Unassigned)
Details
Attachments
(2 files, 1 obsolete file)
Error information says:
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]
** Mercurial Distributed SCM (version 3.7.3)
** Extensions loaded: rebase, graphlog, bugzilla, strip, mq, color, pager, histedit, configwizard
Traceback (most recent call last):
File "/usr/local/bin/hg", line 43, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 54, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 120, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 191, in _runcatch
return _dispatch(req)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 924, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 681, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.7/dist-packages/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/dist-packages/hgext/pager.py", line 143, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/usr/local/lib/python2.7/dist-packages/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/dist-packages/hgext/color.py", line 518, in colorcmd
return orig(ui_, opts, cmd, cmdfunc)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1055, in _runcommand
return checkargs()
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1015, in checkargs
return cmdfunc()
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 921, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/lib/python2.7/dist-packages/mercurial/util.py", line 991, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mercurial/extensions.py", line 195, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/dist-packages/mercurial/util.py", line 991, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/hgext/mq.py", line 3517, in mqcommand
return orig(ui, repo, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mercurial/util.py", line 991, in check
return func(*args, **kwargs)
File "/home/froydnj/.mozbuild/version-control-tools/hgext/configwizard/__init__.py", line 343, in configwizard
cw = configobjwrapper(path)
File "/home/froydnj/.mozbuild/version-control-tools/hgext/configwizard/__init__.py", line 976, in __init__
write_empty_values=True, list_values=False)
File "/home/froydnj/.mozbuild/version-control-tools/pylib/configobj/configobj.py", line 1242, in __init__
self._load(infile, configspec)
File "/home/froydnj/.mozbuild/version-control-tools/pylib/configobj/configobj.py", line 1332, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 6.
Is it possible that this is just an old version of mercurial problem?
Flags: needinfo?(gps)
Reporter | ||
Comment 1•8 years ago
|
||
This is apparently because I have multiple fingerprints for hg.mozilla.org:
[hostfingerprints]
hg.mozilla.org = 96:eb:3b:78:f5:ca:19:e2:0c:a0:95:ea:04:28:7d:26
hg.mozilla.org = af:27:b9:34:47:4e:e5:98:01:f6:83:2b:51:c9:aa:d8:df:fb:1a:27
hg.mozilla.org = 73:7f:ef:ab:68:0f:49:3f:88:91:f0:b7:06:69:fd:8f:f2:55:c9:56
i.e. I am lazy.
Comment 2•8 years ago
|
||
This is due to our use of configobj for Mercurial's config file parsing. configobj has a more strict ini parser than Mercurial and raises errors for things like multiple definitions of the same key.
status-firefox53:
affected → ---
Component: Build Config → Mercurial: configwizard
Flags: needinfo?(gps)
Product: Core → Developer Services
Comment 3•1 year ago
|
||
The content of attachment 9350318 [details] has been deleted for the following reason:
Spam
Comment 6•1 year ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•