Patchwork D6002: hghave: add check for GNU emacs

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2019, 1:38 a.m.
Message ID <1ea853ae7eba189a97d48c17948838b1@localhost.localdomain>
Download mbox | patch
Permalink /patch/38920/
State Not Applicable
Headers show

Comments

phabricator - Feb. 25, 2019, 1:38 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2a6ca0d94b70: hghave: add check for GNU emacs (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6002?vs=14185&id=14230

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




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

Patch

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
+
+@check('emacs', 'GNU Emacs')
+def has_emacs():
+    return matchoutput('emacs --version', b'GNU Emacs')