Mercurial > hg-stable
diff mercurial/bundle2.py @ 40416:14b6afc6cb28 stable
configitems: rename the config to prevent adding an alias in future
Right now the config option looks like:
[experimental.server]
stream-narrow-clones=
which does not match how config options are generally defined in core. So let's
rename this to:
[experimental]
server.stream-narrow-clones=
before the new release so that we don't have to add an alias in future for this.
Differential Revision: https://phab.mercurial-scm.org/D5198
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Wed, 31 Oct 2018 15:27:06 +0300 |
parents | 4ab6e7b4fe8a |
children | aaad36b88298 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Wed Oct 31 11:02:08 2018 +0100 +++ b/mercurial/bundle2.py Wed Oct 31 15:27:06 2018 +0300 @@ -1691,8 +1691,8 @@ includepats = kwargs.get(r'includepats') excludepats = kwargs.get(r'excludepats') - narrowstream = repo.ui.configbool('experimental.server', - 'stream-narrow-clones') + narrowstream = repo.ui.configbool('experimental', + 'server.stream-narrow-clones') if (includepats or excludepats) and not narrowstream: raise error.Abort(_('server does not support narrow stream clones'))