Commiting to hg repos with commit scripts using hgwebdir.cgi
Tim Groeneveld
tim at timg.ws
Mon Mar 24 12:35:49 CDT 2008
On Tuesday 25 March 2008 3:22:23 am Matt Mackall wrote:
> Can you confirm that disabling the hook removes the problem?
Yes I can. It is *ONLY* if I have the hook on.
> The other thing that could be happening here is that you're getting a CGI
> traceback. Turning off the cgitb bits in the .cgi file might be helpful
> - then you'll hopefully get the traceback in your server logs instead.
OK, I did that and this is what I got [See attached file]
Thanks,
- Tim G
-------------- next part --------------
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] Traceback (most recent call last):
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/media/sda3/Hg/hgwebdir.cgi", line 47, in <module>
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] wsgicgi.launch(wsgiapplication(make_web_app))
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hgweb/wsgicgi.py", line 64, in launch
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] result = application(environ, start_response)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hgweb/request.py", line 17, in __call__
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] return _wsgirequest(self.destmaker(), wsgienv, start_response)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hgweb/request.py", line 35, in __init__
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] destination.run_wsgi(self)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hgweb/hgwebdir_mod.py", line 208, in run_wsgi
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] hgweb(repo).run_wsgi(req)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hgweb/hgweb_mod.py", line 823, in run_wsgi
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] method(req)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hgweb/hgweb_mod.py", line 1153, in do_unbundle
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] util.chunkbuffer(gen), 'serve', url)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 1838, in addchangegroup
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] source=srctype, url=url)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 108, in hook
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] return hook.hook(self.ui, self, name, throw, **args)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hook.py", line 94, in hook
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] r = _exthook(ui, repo, hname, cmd, args, throw) or r
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/hook.py", line 74, in _exthook
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] r = util.system(cmd, environ=env, cwd=repo.root)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/var/lib/python-support/python2.5/mercurial/util.py", line 580, in system
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] os.environ['HG'] = _hgexecutable
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] File "/usr/lib/python2.5/os.py", line 476, in __setitem__
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] putenv(key, item)
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] TypeError: putenv() argument 2 must be string, not None
[Tue Mar 25 04:31:37 2008] [error] [client 127.0.0.1] Premature end of script headers: hgwebdir.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20080325/dfcb1725/attachment.pgp
More information about the Mercurial
mailing list