PANIC: hgweb.cgi doesn't work after upgrading to mercurial 4.2

Augie Fackler raf at durin42.com
Sun Jun 4 17:20:01 UTC 2017


> On Jun 4, 2017, at 12:30 PM, Jesus Cea <jcea at jcea.es> wrote:
> 
> I don't see any reference to this issue in
> <https://www.mercurial-scm.org/wiki/WhatsNew>. Is it solved?. I was
> quite painful last time and I had to revert my server to 4.1.3 (where it
> is now).
> 
> I would like to know if I should stay in 4.1.3. Am I the only one being
> hit by it?.

Should be fixed in 4.2.1. Try upgrading and let us know?

> 
> 
> 
> On 04/05/17 09:17, Yuya Nishihara wrote:
>> On Thu, 4 May 2017 00:07:38 +0200, Jesus Cea wrote:
>>> I just upgraded an old installation of mercurial running 4.1.3 to hg 4.2
>>> with "pip install -U mercurial", as I always do. After doing that,
>>> "hgweb.cgi" doesn't work anymore.
>> 
>>> =>  350     raise error.UnknownCommand(cmd, allcmds)
>>>    351
>>>    352 def findrepo(p):
>>> global error = <module 'mercurial.error' from
>>> '/usr/local/lib/python2.7/site-packages/mercurial/error.pyc'>,
>>> error.UnknownCommand = <class 'mercurial.error.UnknownCommand'>, cmd =
>>> 'debugstate', allcmds = ['locate', 'help', 'summary', 'sum', 'annotate',
>>> 'blame', 'tip', 'recover', 'serve', 'tag', 'config', 'showconfig',
>>> 'debugconfig', 'unbundle', 'manifest', 'identify', 'id', 'archive',
>>> 'graft', 'paths', ...]
>> 
>> Confirmed. As a temporary workaround, put the following lines to your cgi
>> script:
>> 
>>  from mercurial import debugcommands
>>  debugcommands.command
> 
> -- 
> Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
> jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
> Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
> jabber / xmpp:jcea at jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
> "Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
> "My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial




More information about the Mercurial mailing list