New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34377 (new defect)

Opened 14 months ago

Last modified 9 months ago

tortoiseHG port has incompatible mercurial version

Reported by: p.dutton@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign@…, shamardin@…
Port: tortoisehg

Description

Hi,

I've installed the tortoisehg port but it will not run. It's saying:

** Mercurial version (2.2.1).  TortoiseHg version (2.1.2)
** Command: 
** CWD: /
** Encoding: ascii
** Extensions loaded: 
** Python version: 2.7.3 (default, May  8 2012, 12:36:09) [GCC 4.0.1 (Apple Inc. build 5493)]
** Qt-4.7.4 PyQt-4.9.1

This version of TortoiseHg requires Mercurial version 1.9.n to 1.10.n, but found 2.2.1

The Mercurial version specified was installed as a dependency of this port, so I didn't have the opportunity to select a different version.

Any ideas?

Thanks,

Peter

Change History

comment:1 Changed 14 months ago by p.dutton@…

  • Cc p.dutton@… added

Cc Me!

comment:2 follow-up: ↓ 3 Changed 14 months ago by ryandesign@…

  • Cc ryandesign@… added; p.dutton@… removed

I guess we should update tortoisehg to a version that is compatible with mercurial 2.2.1. I see tortoisehg 2.4 is available from their web site so we should try updating the port to that version.

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 5 Changed 13 months ago by p.dutton@…

Is this something I can do myself (e.g. just changing the version number in the port file) or is it more complicated?

Replying to ryandesign@…:

I guess we should update tortoisehg to a version that is compatible with mercurial 2.2.1. I see tortoisehg 2.4 is available from their web site so we should try updating the port to that version.

comment:4 Changed 12 months ago by ctmilling@…

I ran into this bug too. You can edit the file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tortoisehg/util/hgversion.py and force the version check to pass regardless of mercurial version. The function now reads:

def checkhgversion(v):
    """range check the Mercurial version"""
    #Force version check to return OK, regardless of mercurial
    if True:
        return
    reqver = ['1', '9']
    ...

It seems to work, but of course this is not the correct solution.

Cheers, Craig

comment:5 in reply to: ↑ 3 Changed 10 months ago by jmr@…

  • Keywords tortoisehg mercurial removed

Replying to p.dutton@…:

Is this something I can do myself (e.g. just changing the version number in the port file) or is it more complicated?

Maybe. The only way to find out is to try changing the version and checksums and seeing if it works.

comment:6 Changed 9 months ago by shamardin@…

  • Cc shamardin@… added

Cc Me!

Note: See TracTickets for help on using tickets.