Opened 13 years ago

Closed 13 years ago

#30131 closed defect (fixed)

tortoisehg 2.0.4 won't start with mercurial 1.9.x

Reported by: btacquet@… Owned by: guido@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: mercurial python py2.6 Cc: ryandesign (Ryan Carsten Schmidt)
Port: tortoisehg

Description

HI,

TortoiseHg is broken for me:

iOurs:~$ thg &
[1] 640
iOurs:~$ Traceback (most recent call last):
  File "/opt/local/bin/thg", line 87, in <module>
    ret = tortoisehg.hgqt.run.dispatch(sys.argv[1:])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/tortoisehg/hgqt/run.py", line 351, in <module>
    class _QtRunner(QObject):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/tortoisehg/hgqt/run.py", line 364, in _QtRunner
    error.RepoLookupError: _('Try refreshing your repository.'),
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/tortoisehg/util/i18n.py", line 77, in agettext
    return hglib.fromutf(u)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/demandimport.py", line 75, in __getattribute__
    self._load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/tortoisehg/util/hglib.py", line 22, in <module>
    from mercurial.patch import updatedir
ImportError: cannot import name updatedir

The issue start with last port selfupdate. No idea if it comes from mercurial/tortoise or python...

Change History (3)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Keywords: tortoisehg removed
Owner: changed from macports-tickets@… to guido@…

Please remember to cc the maintainer.

comment:2 Changed 13 years ago by btacquet@…

Ok issue solved temporary with a regression of mercurial version:

sudo port activate mercurial @1.8.4_0

I guess mercurial 1.9_0 is not working with tortoisehg @2.0.4_1

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Summary: tortoisehg impossible to start after last port updatetortoisehg 2.0.4 won't start with mercurial 1.9.x

Fixed in r82557 by updating to 2.1.2.

Note: See TracTickets for help on using tickets.