Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
34646:238abf65a8ad | 34647:dacfcdd8b94e |
---|---|
601 return ds | 601 return ds |
602 | 602 |
603 def extsetup(ui): | 603 def extsetup(ui): |
604 extensions.wrapfilecache( | 604 extensions.wrapfilecache( |
605 localrepo.localrepository, 'dirstate', wrapdirstate) | 605 localrepo.localrepository, 'dirstate', wrapdirstate) |
606 if pycompat.sysplatform == 'darwin': | 606 if pycompat.isdarwin: |
607 # An assist for avoiding the dangling-symlink fsevents bug | 607 # An assist for avoiding the dangling-symlink fsevents bug |
608 extensions.wrapfunction(os, 'symlink', wrapsymlink) | 608 extensions.wrapfunction(os, 'symlink', wrapsymlink) |
609 | 609 |
610 extensions.wrapfunction(merge, 'update', wrapupdate) | 610 extensions.wrapfunction(merge, 'update', wrapupdate) |
611 | 611 |