Mercurial > hg
diff mercurial/localrepo.py @ 44014:8042856c90b6
rust-index: add a `experimental.rust.index` option to use the wrapper
Now we can start putting this wrapper on the test and benchmark grill.
Differential Revision: https://phab.mercurial-scm.org/D7660
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Thu, 12 Dec 2019 18:31:17 +0100 |
parents | 888bd39ed555 |
children | 3216cabffd4a |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Dec 11 18:10:20 2019 +0100 +++ b/mercurial/localrepo.py Thu Dec 12 18:31:17 2019 +0100 @@ -927,6 +927,9 @@ if repository.NARROW_REQUIREMENT in requirements: options[b'enableellipsis'] = True + if ui.configbool('experimental', 'rust.index'): + options[b'rust.index'] = True + return options