Issue #1 new

TypeError when upgrading to Mercurial 2.3.2

Roger Kratz
created an issue


Recently upgraded our RhodeCode host. Something in our upgrade broke hgban - probably Mercurial itself (to v 2.3.2).

The exception we get is File "c:\python27\lib\site-packages\rhodecode\lib\middleware\", line 197, in _handle_request return app(environ, start_response) File "c:\python27\lib\site-packages\mercurial\hgweb\", line 92, in call return self.run_wsgi(req) File "c:\python27\lib\site-packages\mercurial\hgweb\", line 128, in run_wsgi return, req, cmd) File "c:\python27\lib\site-packages\mercurial\hgweb\", line 76, in call rsp = wireproto.dispatch(repo, p, cmd) File "c:\python27\lib\site-packages\mercurial\", line 351, in dispatch return func(repo, proto, *args) File "c:\python27\lib\site-packages\mercurial\", line 590, in unbundle r = repo.addchangegroup(gen, 'serve', proto._client()) File "c:\python27\lib\site-packages\mercurial\", line 2410, in addchangegroup url=url, pending=p) File "c:\python27\lib\site-packages\mercurial\", line 385, in hook return hook.hook(self.ui, self, name, throw, args) File "c:\python27\lib\site-packages\mercurial\", line 165, in hook r = _pythonhook(ui, repo, name, hname, cmd, args, throw) or r File "c:\python27\lib\site-packages\mercurial\", line 75, in _pythonhook r = obj(ui=ui, repo=repo, hooktype=name, args) File "C:\rhodecode\hooks\hgban\hgban\", line 182, in checkForBannedRevsets descendantRevs = list(repo.changelog.descendants(startRev)) File "c:\python27\lib\site-packages\mercurial\", line 370, in descendants first = min(revs) TypeError: 'int' object is not iterable

Comments (0)

  1. Log in to comment