diff hgext/fsmonitor/__init__.py @ 34647:dacfcdd8b94e

codemod: use pycompat.isdarwin This is done by: sed -i "s/pycompat\.sysplatform == 'darwin'/pycompat.isdarwin/" **/*.py Plus a manual change to `sslutil.py` which involves indentation change that cannot be done by `sed`. Differential Revision: https://phab.mercurial-scm.org/D1035
author Jun Wu <quark@fb.com>
date Thu, 12 Oct 2017 23:34:34 -0700
parents 7259f0ddfc0f
children df2ff314e36f
line wrap: on
line diff
--- a/hgext/fsmonitor/__init__.py	Thu Oct 12 09:04:22 2017 -0700
+++ b/hgext/fsmonitor/__init__.py	Thu Oct 12 23:34:34 2017 -0700
@@ -603,7 +603,7 @@
 def extsetup(ui):
     extensions.wrapfilecache(
         localrepo.localrepository, 'dirstate', wrapdirstate)
-    if pycompat.sysplatform == 'darwin':
+    if pycompat.isdarwin:
         # An assist for avoiding the dangling-symlink fsevents bug
         extensions.wrapfunction(os, 'symlink', wrapsymlink)