Skip to content
Snippets Groups Projects
Commit 3433e8f3 authored by Pulkit Goyal's avatar Pulkit Goyal
Browse files

narrow: rename getbundlechangegrouppart_nonellipsis function

The function is renamed to getbundlechangegrouppart_widen as per suggestion in
D4383. The motivation is such that we can evolve the function into a handler for
new wire-protocol command.

Differential Revision: https://phab.mercurial-scm.org/D4424
parent 048333ef
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,9 @@
caps[NARROWCAP] = ['v0']
return caps
def getbundlechangegrouppart_nonellipsis(bundler, repo, source, bundlecaps=None,
b2caps=None, heads=None, common=None,
**kwargs):
def getbundlechangegrouppart_widen(bundler, repo, source, bundlecaps=None,
b2caps=None, heads=None, common=None,
**kwargs):
"""Handling changegroup changegroup generation on the server when user
is widening their narrowspec"""
......@@ -317,7 +317,7 @@
repo.ui.configbool('experimental', 'narrowservebrokenellipses')):
getbundlechangegrouppart_narrow(*args, **kwargs)
elif kwargs.get(r'widen', False) and kwargs.get(r'narrow', False):
getbundlechangegrouppart_nonellipsis(*args, **kwargs)
getbundlechangegrouppart_widen(*args, **kwargs)
else:
origcgfn(*args, **kwargs)
exchange.getbundle2partsmapping['changegroup'] = wrappedcgfn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment