diff -r 238abf65a8ad -r dacfcdd8b94e hgext/fsmonitor/__init__.py --- 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)