mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
7e4154021c
Summary: provide sockpath in the config, rather than calling `watchman get-sockname` command from python. the config variable was already deployed on all mac this improves hg st by 250-300 ms (the logic gives more priority when env var if specified (the env var override is usually used for testing)) the logic has a retry mechanism if we can't connect to the socket path specified in the config next step: deploy config on dev servers (but we will have only few ms speed up there) we use %i (i for identity) notation for user [298] → hg conf | grep sockpath fsmonitor.sockpath=/opt/facebook/watchman/var/run/watchman/%i-state/sock Reviewed By: farnz Differential Revision: D8549130 fbshipit-source-id: 31df9ebf3eb5133d3e6f64794022cda1b0fadec4 |
||
---|---|---|
.. | ||
__init__.py |