pulkit created this revision. Herald added a reviewer: durin42. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY This is more common to what we do in core and is better. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5147 AFFECTED FILES mercurial/bundle2.py mercurial/configitems.py tests/test-narrow-clone-stream.t CHANGE DETAILS diff --git a/tests/test-narrow-clone-stream.t b/tests/test-narrow-clone-stream.t --- a/tests/test-narrow-clone-stream.t +++ b/tests/test-narrow-clone-stream.t @@ -36,8 +36,8 @@ Enable stream clone on the server - $ echo "[experimental.server]" >> master/.hg/hgrc - $ echo "stream-narrow-clones=True" >> master/.hg/hgrc + $ echo "[experimental]" >> master/.hg/hgrc + $ echo "server.stream-narrow-clones=True" >> master/.hg/hgrc Cloning a specific file when stream clone is supported diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -610,7 +610,7 @@ coreconfigitem('experimental', 'server.manifestdata.recommended-batch-size', default=100000, ) -coreconfigitem('experimental.server', 'stream-narrow-clones', +coreconfigitem('experimental', 'server.stream-narrow-clones', default=False, ) coreconfigitem('experimental', 'single-head-per-branch', diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -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')) To: pulkit, durin42, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel