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

Jesus Cea jcea at jcea.es
Sun Jun 4 16:30:38 UTC 2017


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?.



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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20170604/b163dc3d/attachment.sig>


More information about the Mercurial mailing list