hghave: add check for GNU emacs
authorAugie Fackler <augie@google.com>
Thu, 21 Feb 2019 23:06:18 -0500
changeset 41787 2a6ca0d94b70
parent 41786 b6c062bb4be3
child 41788 19979b8b87e2
hghave: add check for GNU emacs Differential Revision: https://phab.mercurial-scm.org/D6002
tests/hghave.py
--- a/tests/hghave.py	Thu Feb 21 20:12:39 2019 -0500
+++ b/tests/hghave.py	Thu Feb 21 23:06:18 2019 -0500
@@ -822,3 +822,7 @@
     except (ImportError, AttributeError):
         pass
     return False
+
+@check('emacs', 'GNU Emacs')
+def has_emacs():
+    return matchoutput('emacs --version', b'GNU Emacs')