Patchwork D1033: pycompat: define operating system constants

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2017, 2:06 p.m.
Message ID <75bd49c3cc0ab1e2384dca493c00932e@localhost.localdomain>
Download mbox | patch
Permalink /patch/24830/
State Not Applicable
Headers show

Comments

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




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'