# HG changeset patch # User Pulkit Goyal # Date 2019-05-24 12:59:59 # Node ID 343b3ed35cb812aad7c91f1c800c7b6f95987ba8 # Parent f66628c15e6fa76600a0970969aa55b98f130606 narrow: move heads close to common as they are closely related Differential Revision: https://phab.mercurial-scm.org/D6445 diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py +++ b/hgext/narrow/narrowbundle2.py @@ -63,11 +63,11 @@ def getbundlechangegrouppart_narrow(bund newexclude = sorted(filter(bool, kwargs.get(r'excludepats', []))) known = {bin(n) for n in kwargs.get('known', [])} generateellipsesbundle2(bundler, repo, oldinclude, oldexclude, newinclude, - newexclude, version, common, known, - kwargs.get(r'depth', None), heads) + newexclude, version, common, heads, known, + kwargs.get(r'depth', None)) def generateellipsesbundle2(bundler, repo, oldinclude, oldexclude, newinclude, - newexclude, version, common, known, depth, heads): + newexclude, version, common, heads, known, depth): newmatch = narrowspec.match(repo.root, include=newinclude, exclude=newexclude) if depth is not None: