D1033: pycompat: define operating system constants

quark (Jun Wu) phabricator at mercurial-scm.org
Thu Oct 12 22:21:25 EDT 2017


quark updated this revision to Diff 2652.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1033?vs=2636&id=2652

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