[PATCH 1 of 2 RFC] hghave: introduce a 'linux' feature

Matt Harbison mharbison at attotech.com
Fri Mar 20 22:36:25 UTC 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1426885885 14400
#      Fri Mar 20 17:11:25 2015 -0400
# Node ID 6b3aff8a06f1cf7057a9bdcdc5e301dde0801828
# Parent  dc7588ce06b30a6ef347f7554e9646ac00e4456a
hghave: introduce a 'linux' feature

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -363,6 +363,10 @@ def has_aix():
 def has_osx():
     return sys.platform == 'darwin'
 
+ at check("linux", "Linux")
+def has_linux():
+    return sys.platform.startswith('linux')
+
 @check("absimport", "absolute_import in __future__")
 def has_absimport():
     import __future__


More information about the Mercurial-devel mailing list