comparison mercurial/bundle2.py @ 40429: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
comparison
equal deleted inserted replaced
40428:bafa1c4bb7a8 40429:14b6afc6cb28
1689 1689
1690 # get the includes and excludes 1690 # get the includes and excludes
1691 includepats = kwargs.get(r'includepats') 1691 includepats = kwargs.get(r'includepats')
1692 excludepats = kwargs.get(r'excludepats') 1692 excludepats = kwargs.get(r'excludepats')
1693 1693
1694 narrowstream = repo.ui.configbool('experimental.server', 1694 narrowstream = repo.ui.configbool('experimental',
1695 'stream-narrow-clones') 1695 'server.stream-narrow-clones')
1696 1696
1697 if (includepats or excludepats) and not narrowstream: 1697 if (includepats or excludepats) and not narrowstream:
1698 raise error.Abort(_('server does not support narrow stream clones')) 1698 raise error.Abort(_('server does not support narrow stream clones'))
1699 1699
1700 includeobsmarkers = False 1700 includeobsmarkers = False