[Bug 5022] New: ValueError: min() arg is an empty sequence in hgweb

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Dec 22 03:48:32 UTC 2015


https://bz.mercurial-scm.org/show_bug.cgi?id=5022

            Bug ID: 5022
           Summary: ValueError: min() arg is an empty sequence in hgweb
           Product: Mercurial
           Version: default branch
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: hgweb
          Assignee: bugzilla at selenic.com
          Reporter: gregory.szorc at gmail.com
                CC: mercurial-devel at selenic.com

I upgraded hg.mozilla.org to 3.6.2 earlier today and noticed this crash in the
logs:

Traceback (most recent call last):
File
"/repo/hg/venv_hgweb/lib/python2.7/site-packages/mercurial/hgweb/hgweb_mod.py",
line 281, in run_wsgi
  for r in self._runwsgi(req, repo):
File "/repo/hg/version-control-tools/hgext/serverlog/__init__.py", line 273, in
_runwsgi
  for what in super(hgwebwrapped, self)._runwsgi(req, repo):
File "/repo/hg/venv_hgweb/lib/python2.7/site-packages/mercurial/util.py", line
616, in increasingchunks
  for chunk in source:
File "/repo/hg/venv_hgweb/lib/python2.7/site-packages/mercurial/templater.py",
line 778, in _flatten
  for j in _flatten(i):
File "/repo/hg/venv_hgweb/lib/python2.7/site-packages/mercurial/templater.py",
line 771, in _flatten
  for i in thing:
File "/repo/hg/venv_hgweb/lib/python2.7/site-packages/mercurial/templater.py",
line 289, in runmap
  for i in d:
File
"/repo/hg/venv_hgweb/lib/python2.7/site-packages/mercurial/hgweb/webcommands.py",
line 614, in entries
  t = [min(i)]
ValueError: min() arg is an empty sequence

Not sure if it is a regression or a long time bug. I'm also not sure what STR
are (because I haven't really looked).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list