TypeError when upgrading to Mercurial 2.3.2
Created originally on Bitbucket by Anonymous
Hi
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\simplehg.py", line 197, in _handle_request return app(environ, start_response) File "c:\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py", line 92, in call return self.run_wsgi(req) File "c:\python27\lib\site-packages\mercurial\hgweb\hgweb_mod.py", line 128, in run_wsgi return protocol.call(self.repo, req, cmd) File "c:\python27\lib\site-packages\mercurial\hgweb\protocol.py", line 76, in call rsp = wireproto.dispatch(repo, p, cmd) File "c:\python27\lib\site-packages\mercurial\wireproto.py", line 351, in dispatch return func(repo, proto, *args) File "c:\python27\lib\site-packages\mercurial\wireproto.py", line 590, in unbundle r = repo.addchangegroup(gen, 'serve', proto._client()) File "c:\python27\lib\site-packages\mercurial\localrepo.py", line 2410, in addchangegroup url=url, pending=p) File "c:\python27\lib\site-packages\mercurial\localrepo.py", line 385, in hook return hook.hook(self.ui, self, name, throw, **args) File "c:\python27\lib\site-packages\mercurial\hook.py", line 165, in hook r = _pythonhook(ui, repo, name, hname, cmd, args, throw) or r File "c:\python27\lib\site-packages\mercurial\hook.py", line 75, in _pythonhook r = obj(ui=ui, repo=repo, hooktype=name, **args) File "C:\rhodecode\hooks\hgban\hgban\hgban.py", line 182, in checkForBannedRevsets descendantRevs = list(repo.changelog.descendants(startRev)) File "c:\python27\lib\site-packages\mercurial\revlog.py", line 370, in descendants first = min(revs) TypeError: 'int' object is not iterable