This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1a6a01a21d6a: hghave: add pyXY features for Python version
numbers (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
durin42 added a comment.
I still don't love this, but I'm landing it to make forward progress on 3.7.
:/
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5088
To: indygreg, #hg-reviewers
Cc: durin42, mercurial-devel
indygreg updated this revision to Diff 13509.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5088?vs=12096=13509
REVISION DETAIL
https://phab.mercurial-scm.org/D5088
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
diff --git a/tests/hghave.py
indygreg added a comment.
In https://phab.mercurial-scm.org/D5088#76415, @durin42 wrote:
> Ah, so I could do (no-py27 no-py35 !) I suppose. Doesn't help with the
other half, but it's still only three lines...
`(no-py27 no-py35 !)` would be "<2.7 & < 3.5", which would only be true
durin42 added a comment.
In https://phab.mercurial-scm.org/D5088#76414, @indygreg wrote:
> In https://phab.mercurial-scm.org/D5088#76278, @durin42 wrote:
>
> > Is there a way for me to specify something like "<=3.5" and "3.6<=" or
similar?
>
>
> Adding `no-` to the capability
indygreg added a comment.
In https://phab.mercurial-scm.org/D5088#76278, @durin42 wrote:
> Is there a way for me to specify something like "<=3.5" and "3.6<=" or
similar?
Adding `no-` to the capability name will invert the condition. e.g. 3.5 will
test false for `no-py27` and
durin42 added a comment.
Is there a way for me to specify something like "<=3.5" and "3.6<=" or
similar?
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5088
To: indygreg, #hg-reviewers
Cc: durin42, mercurial-devel
indygreg updated this revision to Diff 12096.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5088?vs=12095=12096
REVISION DETAIL
https://phab.mercurial-scm.org/D5088
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
diff --git a/tests/hghave.py
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This will allow us to sniff for Python >= versions in tests.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5088
AFFECTED FILES