Patchwork D2368: narrowbundle2: this dict contains native strings, look kws up as such

login
register
mail settings
Submitter phabricator
Date Feb. 21, 2018, 5:42 p.m.
Message ID <differential-rev-PHID-DREV-rhd25oqnncmuxlvmyjkz-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28195/
State Superseded
Headers show

Comments

phabricator - Feb. 21, 2018, 5:42 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  We could also do a byteskwargs dance, but that seems silly given that
  we only need this one element.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2368

AFFECTED FILES
  hgext/narrow/narrowbundle2.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Feb. 21, 2018, 5:57 p.m.
pulkit added a comment.


  This one requires # skip-blame.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2368

To: durin42, #hg-reviewers
Cc: pulkit, mercurial-devel

Patch

diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py
--- a/hgext/narrow/narrowbundle2.py
+++ b/hgext/narrow/narrowbundle2.py
@@ -479,7 +479,7 @@ 
         if repo.ui.has_section(_NARROWACL_SECTION):
             getbundlechangegrouppart_narrow(
                 *args, **applyacl_narrow(repo, kwargs))
-        elif kwargs.get('narrow', False):
+        elif kwargs.get(r'narrow', False):
             getbundlechangegrouppart_narrow(*args, **kwargs)
         else:
             origcgfn(*args, **kwargs)