D6002: hghave: add check for GNU emacs

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Fri Feb 22 04:40:22 UTC 2019


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6002

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -822,3 +822,7 @@
     except (ImportError, AttributeError):
         pass
     return False
+
+ at check('emacs', 'GNU Emacs')
+def has_emacs():
+    return matchoutput('emacs --version', b'GNU Emacs')



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list