Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2019 11:24:08 +0000 (UTC)
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511085 - in head/devel/tortoisehg: . files
Message-ID:  <201909041124.x84BO8EN032907@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arrowd
Date: Wed Sep  4 11:24:08 2019
New Revision: 511085
URL: https://svnweb.freebsd.org/changeset/ports/511085

Log:
  devel/tortoisehg: Remove strict check for Mercurial version.

Added:
  head/devel/tortoisehg/files/patch-tortoisehg_util_hgversion.py   (contents, props changed)
Modified:
  head/devel/tortoisehg/Makefile

Modified: head/devel/tortoisehg/Makefile
==============================================================================
--- head/devel/tortoisehg/Makefile	Wed Sep  4 11:21:54 2019	(r511084)
+++ head/devel/tortoisehg/Makefile	Wed Sep  4 11:24:08 2019	(r511085)
@@ -2,6 +2,7 @@
 
 PORTNAME=	tortoisehg
 DISTVERSION=	5.0.2
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://bitbucket.org/tortoisehg/targz/downloads/
 

Added: head/devel/tortoisehg/files/patch-tortoisehg_util_hgversion.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tortoisehg/files/patch-tortoisehg_util_hgversion.py	Wed Sep  4 11:24:08 2019	(r511085)
@@ -0,0 +1,20 @@
+--- tortoisehg/util/hgversion.py.orig	2019-06-27 21:18:37 UTC
++++ tortoisehg/util/hgversion.py
+@@ -19,16 +19,4 @@ except AttributeError:
+ testedwith = '4.9 5.0'
+ 
+ def checkhgversion(v):
+-    """range check the Mercurial version"""
+-    reqvers = testedwith.split()
+-    v = v.split('+')[0]
+-    if not v or v == 'unknown' or len(v) >= 12:
+-        # can't make any intelligent decisions about unknown or hashes
+-        return
+-    vers = re.split(r'\.|-|rc', v)[:2]
+-    if len(vers) < 2:
+-        return
+-    if '.'.join(vers) in reqvers:
+-        return
+-    return ('This version of TortoiseHg requires Mercurial version %s.n to '
+-            '%s.n, but found %s') % (reqvers[0], reqvers[-1], v)
++    return



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909041124.x84BO8EN032907>