From patchwork Thu May 11 13:41:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [STABLE] hghave: prefill more version of Mercurial From: Pierre-Yves David X-Patchwork-Id: 20569 Message-Id: <7a61f40a4fada0ccadc6.1494510117@nodosa.octopoid.net> To: mercurial-devel@mercurial-scm.org Date: Thu, 11 May 2017 15:41:57 +0200 # HG changeset patch # User Pierre-Yves David # Date 1494335327 -7200 # Tue May 09 15:08:47 2017 +0200 # Branch stable # Node ID 7a61f40a4fada0ccadc65d9e6c8fae4483f00b85 # Parent bb96d4a497432722623ae60d9bc734a1e360179e # EXP-Topic hghave # Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ # hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 7a61f40a4fad hghave: prefill more version of Mercurial The previous code was unable to go above version 4.0. diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -247,7 +247,7 @@ def gethgversion(): return (int(m.group(1)), int(m.group(2))) @checkvers("hg", "Mercurial >= %s", - list([(1.0 * x) / 10 for x in range(9, 40)])) + list([(1.0 * x) / 10 for x in range(9, 99)])) def has_hg_range(v): major, minor = v.split('.')[0:2] return gethgversion() >= (int(major), int(minor))