changeset 29877 | 80ba176bad62 |
parent 29871 | b05a3a04f046 |
child 29907 | fe81c953f369 |
--- a/tests/hghave.py Fri Aug 26 00:16:51 2016 +0000 +++ b/tests/hghave.py Mon Aug 29 22:59:39 2016 +0900 @@ -357,6 +357,10 @@ def has_gpg2(): return matchoutput('gpg --version 2>&1', br'GnuPG[^0-9]+2\.') +@check("gpg21", "gpg client v2.1+") +def has_gpg21(): + return matchoutput('gpg --version 2>&1', br'GnuPG[^0-9]+2\.(?!0)') + @check("unix-permissions", "unix-style permissions") def has_unix_permissions(): d = tempfile.mkdtemp(dir='.', prefix=tempprefix)