1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #2335 resolved

thg fails to find repo after upgrade to latest version

Angelos Tzotsos
created an issue

I am an openSUSE packager trying to bring thg up to date with our Mercurial version (2.4.1). Unfortunately the upgrade did not succeed. 1. The source tar.gz for version 2.6.1 is incomplete and missing files. 2. I got the tar.gz from bitbucket and this one worked for creating the rpm. 3. Loading a repository creates the following error.

This is the bug report:

** Mercurial version (2.4.1).  TortoiseHg version (2.6.1)
** Command: 
** CWD: /home/kalxas
** Encoding: UTF-8
** Extensions loaded: hgsubversion
** Python version: 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC]
** Qt-4.8.4 PyQt-4.9.6
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/workbench.py", line 564, in openRepo
    self._openRepo(root, reuse)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/workbench.py", line 934, in _openRepo
    repo = thgrepo.repository(path=root)
  File "/usr/lib/python2.7/site-packages/tortoisehg/hgqt/thgrepo.py", line 53, in repository
    repo = hg.repository(_ui, path, create)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 111, in repository
    peer = _peerorrepo(ui, path, create)
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 106, in _peerorrepo
    hook(ui, obj)
  File "/usr/lib/python2.7/site-packages/hgext/hgsubversion/__init__.py", line 179, in reposetup
    svnrepo.generate_repo_class(ui, repo)
  File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
  File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
  File "/usr/lib/python2.7/site-packages/hgext/hgsubversion/svnrepo.py", line 110, in <module>
    class svnremoterepo(mercurial.repo.repository):
  File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
  File "/usr/lib/python2.7/site-packages/mercurial/demandimport.py", line 58, in _load
    mod = _origimport(head, globals, locals)
ImportError: No module named repo

Comments (3)

  1. Angelos Tzotsos reporter

    Thanks Andre for the heads up. I updated hgsubversion to 1.5 and it works fine now. I submitted a pull request on openSUSE Factory and the fixes will be up in a few hours.

  2. Log in to comment