hg version produces: 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 28, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in dispatch ret = _runcatch(req) File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 138, in _runcatch return _dispatch(req) File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 820, in _dispatch cmdpats, cmdoptions) File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 600, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 911, in _runcommand return checkargs() File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 882, in checkargs return cmdfunc() File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 817, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/usr/local/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check return func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/mercurial/commands.py", line 6029, in version_ maxnamelen = max(len(n) for n in names) ValueError: max() arg is an empty sequence
You have verbose enabled (with -v or ui.verbose) and version is now trying to list your extensions.
Fixed by http://selenic.com/repo/hg/rev/54ff2789d75e Matt Mackall <mpm@selenic.com> version: don't traceback if no extensions to list (issue4312) (please test the fix)
Thanks. I did't have HG with no extensions installed to test this.
I mean I didn't have a chance to think about testing this scenario.