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

Yuya Nishihara yuya at tcha.org
Thu May 4 07:17:00 UTC 2017


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



More information about the Mercurial mailing list