Mercurial > hg
comparison mercurial/dirstate.py @ 43612:dc9c570a3818
dirstate: re-blacken file
This got overlooked in landing a recent patch, but it's easy to fix up.
Differential Revision: https://phab.mercurial-scm.org/D7367
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 11 Nov 2019 16:14:35 -0500 |
parents | c21aca51b392 |
children | dd773340a085 |
comparison
equal
deleted
inserted
replaced
43611:27c25c0dc967 | 43612:dc9c570a3818 |
---|---|
1112 # Force Rayon (Rust parallelism library) to respect the number of | 1112 # Force Rayon (Rust parallelism library) to respect the number of |
1113 # workers. This is a temporary workaround until Rust code knows | 1113 # workers. This is a temporary workaround until Rust code knows |
1114 # how to read the config file. | 1114 # how to read the config file. |
1115 numcpus = self._ui.configint("worker", "numcpus") | 1115 numcpus = self._ui.configint("worker", "numcpus") |
1116 if numcpus is not None: | 1116 if numcpus is not None: |
1117 encoding.environ.setdefault(b'RAYON_NUM_THREADS', b'%d' % numcpus) | 1117 encoding.environ.setdefault( |
1118 b'RAYON_NUM_THREADS', b'%d' % numcpus | |
1119 ) | |
1118 | 1120 |
1119 workers_enabled = self._ui.configbool("worker", "enabled", True) | 1121 workers_enabled = self._ui.configbool("worker", "enabled", True) |
1120 if not workers_enabled: | 1122 if not workers_enabled: |
1121 encoding.environ[b"RAYON_NUM_THREADS"] = b"1" | 1123 encoding.environ[b"RAYON_NUM_THREADS"] = b"1" |
1122 | 1124 |