D1033: pycompat: define operating system constants
quark (Jun Wu)
phabricator at mercurial-scm.org
Fri Oct 13 10:06:14 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc0a6c19690ff: pycompat: define operating system constants (authored by quark, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1033?vs=2652&id=2682
REVISION DETAIL
https://phab.mercurial-scm.org/D1033
AFFECTED FILES
mercurial/pycompat.py
CHANGE DETAILS
diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py
--- a/mercurial/pycompat.py
+++ b/mercurial/pycompat.py
@@ -316,3 +316,7 @@
rawinput = raw_input
isjython = sysplatform.startswith('java')
+
+isdarwin = sysplatform == 'darwin'
+isposix = osname == 'posix'
+iswindows = osname == 'nt'
To: quark, #hg-reviewers, spectral
Cc: spectral, mercurial-devel
More information about the Mercurial-devel
mailing list