New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30131 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

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@…
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

comment:1 Changed 2 years ago by jmr@…

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

Please remember to cc the maintainer.

comment:2 Changed 2 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 22 months ago by ryandesign@…

  • Cc ryandesign@… added
  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from tortoisehg impossible to start after last port update to tortoisehg 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.