changeset 29790 | 94fb0458a791 |
parent 29611 | 334632380e22 |
child 29809 | 7025693433b2 |
--- a/tests/hghave.py Sun Aug 14 16:49:47 2016 +0900 +++ b/tests/hghave.py Sun Aug 14 17:01:33 2016 +0900 @@ -349,6 +349,10 @@ def has_gpg(): return matchoutput('gpg --version 2>&1', br'GnuPG') +@check("gpg2", "gpg client v2") +def has_gpg2(): + return matchoutput('gpg --version 2>&1', br'GnuPG[^0-9]+2\.') + @check("unix-permissions", "unix-style permissions") def has_unix_permissions(): d = tempfile.mkdtemp(dir='.', prefix=tempprefix)