Issue #291: Cannot pull/clone after upgrade from 0.3.2 to 0.3.3
| Reported by: | Arun Chandrasekaran |
| State: | resolved |
| Created on: | 2017-08-08 00:02 |
| Updated on: | 2017-08-08 00:42 |
Description
2017-08-07 16:59:15.367 ERROR [kallithea.lib.middleware.simplehg] Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/kallithea/lib/middleware/simplehg.py", line 210, in _handle_request
app = self.__make_app(repo_path, baseui, extras)
File "/usr/lib/python2.6/site-packages/kallithea/lib/middleware/simplehg.py", line 243, in __make_app
return HgWebWrapper(repo_name, name=repo_name, baseui=baseui)
File "/usr/lib64/python2.6/site-packages/mercurial/hgweb/hgweb_mod.py", line 232, in __init__
r = hg.repository(u, repo)
File "/usr/lib64/python2.6/site-packages/mercurial/hg.py", line 166, in repository
peer = _peerorrepo(ui, path, create)
File "/usr/lib64/python2.6/site-packages/mercurial/hg.py", line 153, in _peerorrepo
obj = _peerlookup(path).instance(ui, path, create)
File "/usr/lib64/python2.6/site-packages/mercurial/hg.py", line 123, in _peerlookup
return thing(path)
File "/usr/lib/python2.6/site-packages/hgsubversion/__init__.py", line 188, in _lookup
if util.islocalrepo(url):
AttributeError: 'NoneType' object has no attribute 'islocalrepo'
Mercurial version
[root@jenkins kallithea]# [root@jenkins kallithea]# hg --version Mercurial Distributed SCM (version 4.2.2) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2017 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@jenkins kallithea]# [root@jenkins kallithea]#
Attachments
Comments
Comment by Mads Kiilerich, on 2017-08-08 00:31
That seems like an incompatibiity between your Mercurial version and your hgsubversion version. Try upgrading hgsubversion.
Comment by Arun Chandrasekaran, on 2017-08-08 00:38
Comment by Arun Chandrasekaran, on 2017-08-08 00:39
Comment by Arun Chandrasekaran, on 2017-08-08 00:39
Thanks, let me try that.
Comment by Arun Chandrasekaran, on 2017-08-08 00:42
As Mads mentioned, this resolved the issue.
pip install --upgrade hgsubversion service kallithea stop service kallithea start