Patchwork [STABLE] hghave: prefill more version of Mercurial

login
register
mail settings
Submitter Pierre-Yves David
Date May 11, 2017, 1:41 p.m.
Message ID <7a61f40a4fada0ccadc6.1494510117@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20569/
State Accepted
Headers show

Comments

Pierre-Yves David - May 11, 2017, 1:41 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# 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.
Yuya Nishihara - May 12, 2017, 2:14 p.m.
On Thu, 11 May 2017 15:41:57 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # 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

Seems fine. Queued, thanks.

Patch

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))