changeset 36388:cd4f13f1ea2f

narrowbundle2: use native string to get kwargs from dict # skip-blame just some r prefixes on strings Differential Revision: https://phab.mercurial-scm.org/D2387
author Augie Fackler <augie@google.com>
date Wed, 21 Feb 2018 22:49:40 -0500
parents 0d5eaa97676b
children 7e97174a1835
files hgext/narrow/narrowbundle2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowbundle2.py	Wed Feb 21 22:49:15 2018 -0500
+++ b/hgext/narrow/narrowbundle2.py	Wed Feb 21 22:49:40 2018 -0500
@@ -229,8 +229,8 @@
         raise ValueError(_("server does not advertise changegroup version,"
                            " can't negotiate support for ellipsis nodes"))
 
-    include = sorted(filter(bool, kwargs.get('includepats', [])))
-    exclude = sorted(filter(bool, kwargs.get('excludepats', [])))
+    include = sorted(filter(bool, kwargs.get(r'includepats', [])))
+    exclude = sorted(filter(bool, kwargs.get(r'excludepats', [])))
     newmatch = narrowspec.match(repo.root, include=include, exclude=exclude)
     if not repo.ui.configbool("experimental", "narrowservebrokenellipses"):
         outgoing = exchange._computeoutgoing(repo, heads, common)