svn commit: r511085 - in head/devel/tortoisehg: . files
Gleb Popov
arrowd at FreeBSD.org
Wed Sep 4 11:24:09 UTC 2019
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
More information about the svn-ports-head
mailing list