changeset 41787:2a6ca0d94b70

hghave: add check for GNU emacs Differential Revision: https://phab.mercurial-scm.org/D6002
author Augie Fackler <augie@google.com>
date Thu, 21 Feb 2019 23:06:18 -0500
parents b6c062bb4be3
children 19979b8b87e2
files tests/hghave.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')