Cannot pull/clone after upgrade from 0.3.2 to 0.3.3

Issue #291 resolved
Arun Chandrasekaran created an issue
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]#

Comments (5)

  1. Mads Kiilerich

    That seems like an incompatibiity between your Mercurial version and your hgsubversion version. Try upgrading hgsubversion.

  2. Arun Chandrasekaran reporter

    As Mads mentioned, this resolved the issue.

    pip install --upgrade hgsubversion
    service kallithea stop
    service kallithea start
    
  3. Log in to comment