changeset 42391:343b3ed35cb8

narrow: move heads close to common as they are closely related Differential Revision: https://phab.mercurial-scm.org/D6445
author Pulkit Goyal <pulkit@yandex-team.ru>
date Fri, 24 May 2019 15:59:59 +0300
parents f66628c15e6f
children c2d10506725c
files hgext/narrow/narrowbundle2.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowbundle2.py	Fri May 24 15:57:00 2019 +0300
+++ b/hgext/narrow/narrowbundle2.py	Fri May 24 15:59:59 2019 +0300
@@ -63,11 +63,11 @@
     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: