hgext/narrow/narrowwirepeer.py
changeset 40344 2c5835b4246b
parent 40212 885d5cf9b6a4
child 42415 c767e655ffda
--- a/hgext/narrow/narrowwirepeer.py	Wed Oct 17 09:30:07 2018 -0700
+++ b/hgext/narrow/narrowwirepeer.py	Fri Oct 05 11:07:34 2018 -0700
@@ -12,7 +12,6 @@
     error,
     extensions,
     hg,
-    match as matchmod,
     narrowspec,
     pycompat,
     wireprototypes,
@@ -82,9 +81,8 @@
                                     exclude=newexcludes)
         oldmatch = narrowspec.match(repo.root, include=oldincludes,
                                     exclude=oldexcludes)
-        diffmatch = matchmod.differencematcher(newmatch, oldmatch)
 
-        bundler = bundle2.widen_bundle(repo, diffmatch, common, known,
+        bundler = bundle2.widen_bundle(repo, oldmatch, newmatch, common, known,
                                              cgversion, ellipses)
     except error.Abort as exc:
         bundler = bundle2.bundle20(repo.ui)