Skip to content

Commit

Permalink
robustcheckout: reference testedwith in supported_hg assertion r=gps
Browse files Browse the repository at this point in the history
Now we only need to update the supported Mercurial versions in a
single location.

Differential Revision: https://phabricator.services.mozilla.com/D11197

--HG--
extra : moz-landing-system : lando
  • Loading branch information
cgsheeh committed Nov 7, 2018
1 parent eb2598a commit 727dedc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions hgext/robustcheckout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,9 @@ def getsparse():

def supported_hg():
'''Returns True if the Mercurial version is supported for robustcheckout'''
return util.versiontuple(n=2) in (
(4, 3),
(4, 4),
(4, 5),
(4, 6),
(4, 7),
(4, 8),
)
return '.'.join(
str(v) for v in util.versiontuple(n=2)
) in testedwith.split()


if os.name == 'nt':
Expand Down

0 comments on commit 727dedc

Please sign in to comment.