D5088: hghave: add pyXY features for Python version numbers

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Mon Oct 15 03:28:38 EDT 2018


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 for <=2.6. You'd want `no-py35` to say "Python 2.7 only" for example.
  
  > I'm not opposed to the patch, but I'm a little wary of it - so far we only have one use case and I already worked around that with an (re) line instead.
  
  Explicit annotation of expected differences in behavior is better than e.g. a `(re)`. I'm willing to be that `(re)` survives long after we drop support for Python 3.6 in several years...

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5088

To: indygreg, #hg-reviewers
Cc: durin42, mercurial-devel


More information about the Mercurial-devel mailing list