Opened 13 years ago

Closed 11 years ago

#34377 closed defect (fixed)

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 (Ryan Carsten Schmidt), 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 (7)

comment:1 Changed 13 years ago by p.dutton@…

Cc: p.dutton@… added

Cc Me!

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

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 ; Changed 13 years 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 years 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 12 years ago by jmroot (Joshua Root)

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 12 years ago by shamardin@…

Cc: shamardin@… added

Cc Me!

comment:7 Changed 11 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: newclosed

This should be fixed now that I've updated both mercurial and tortoisehg. If not, please re-open the ticket.

Note: See TracTickets for help on using tickets.