[Bug 4183] New: hgweb ISE-500s when issued a GET /atom-log on a repo with no revs

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Feb 25 14:47:21 CST 2014


http://bz.selenic.com/show_bug.cgi?id=4183

          Priority: normal
            Bug ID: 4183
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hgweb ISE-500s when issued a GET /atom-log on a repo
                    with no revs
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: bkero at mozilla.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.5.4
         Component: Mercurial
           Product: Mercurial

While looking at the hgweb tracebacks I've run into this in my logs. Upon
investigating the repository I've found it to contain no revisions.

[bkero at boris ~]$ curl -s
http://hgweb6.dmz.scl3.mozilla.com/tbbuild/atom-log|head -3
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>



[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5] Traceback (most recent
call last):
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]   File
"/usr/lib64/python2.6/site-packages/mercurial/util.py", line 327, in
increasingchunks
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]     for chunk in source:
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]   File
"/usr/lib64/python2.6/site-packages/mercurial/templater.py", line 315, in
_flatten
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]     for j in _flatten(i):
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]   File
"/usr/lib64/python2.6/site-packages/mercurial/templater.py", line 308, in
_flatten
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]     for i in thing:
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]   File
"/usr/lib64/python2.6/site-packages/mercurial/templater.py", line 184, in
runmap
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]     for i in d:
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]   File
"/usr/lib64/python2.6/site-packages/mercurial/hgweb/webcommands.py", line 206,
in changelist
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5]     revs = (r,)
[Tue Feb 25 20:37:56 2014] [error] [client 10.2.10.5] UnboundLocalError: local
variable 'r' referenced before assignment

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


More information about the Mercurial-devel mailing list