Patchwork D1033: pycompat: define operating system constants

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2017, 2:21 a.m.
Message ID <392d65e76467a0dd7e80fbf019103ac0@localhost.localdomain>
Download mbox | patch
Permalink /patch/24809/
State Not Applicable
Headers show

Comments

phabricator - Oct. 13, 2017, 2:21 a.m.
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




To: quark, #hg-reviewers, spectral
Cc: spectral, mercurial-devel

Patch

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'