OCaml Forge

Detail: [#952] hg server crash

Bugs: Browse | Download .csv | Monitor

[#952] hg server crash

Date:
2011-04-10 19:23
Priority:
3
State:
Open
Submitted by:
Dawid Toton (toton)
Assigned to:
Sylvain Le Gall (gildor-admin)
Host:
None
Forwarded Upstream:
None
Summary:
hg server crash

Detailed description
hgweb dies:

http://hg.ocamlcore.org/cgi-bin/hgwebdir.cgi/ocaml-installer/file

(...)
/usr/lib/pymodules/python2.5/mercurial/hgweb/webcommands.py
(...)
<type 'exceptions.UnboundLocalError'>: local variable 'inst' referenced before assignment
args = ("local variable 'inst' referenced before assignment",)
message = "local variable 'inst' referenced before assignment"

Followup

Message
Date: 2011-06-20 09:42
Sender: Dawid Toton

I worked around this: I have created invalid symbolic link at
/hg/cmdline-args/.hg

This way the repository isn't recreated.
Date: 2011-06-09 16:47
Sender: Dawid Toton

Unfortunately, something does hg init periodically in
/hg/cmdline-args/
instead of
/hg/cmdline-args/cmdline-args

So the workaround I found works only for few hours.
Date: 2011-06-09 08:20
Sender: Dawid Toton

It seems that the solution is easy:

I had this sort of crash with
http://hg.ocamlcore.org/cgi-bin/hgwebdir.cgi/cmdline-args/cmdline-args/

Then I deleted
/hg/cmdline-args/.hg

and now it works.

I understand that some of the new gforge code assumed that hg repos are in /hg/name instead of /hg/name/branch-name.
Date: 2011-05-19 09:47
Sender: Sylvain Le Gall

I acknowledge the bug... But so far, I don't know how to solve it.

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2011-05-19 09:47gildor-admin