This revision was automatically updated to reflect the committed changes. Closed by commit rHG22f8efbf9e44: narrowbundle2: more kwargs native string fixes (authored by durin42, committed by ).
REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2389?vs=5988&id=5993 REVISION DETAIL https://phab.mercurial-scm.org/D2389 AFFECTED FILES hgext/narrow/narrowbundle2.py CHANGE DETAILS diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py +++ b/hgext/narrow/narrowbundle2.py @@ -259,17 +259,17 @@ return - depth = kwargs.get('depth', None) + depth = kwargs.get(r'depth', None) if depth is not None: depth = int(depth) if depth < 1: raise error.Abort(_('depth must be positive, got %d') % depth) heads = set(heads or repo.heads()) common = set(common or [nullid]) - oldinclude = sorted(filter(bool, kwargs.get('oldincludepats', []))) - oldexclude = sorted(filter(bool, kwargs.get('oldexcludepats', []))) - known = {bin(n) for n in kwargs.get('known', [])} + oldinclude = sorted(filter(bool, kwargs.get(r'oldincludepats', []))) + oldexclude = sorted(filter(bool, kwargs.get(r'oldexcludepats', []))) + known = {bin(n) for n in kwargs.get(r'known', [])} if known and (oldinclude != include or oldexclude != exclude): # Steps: # 1. Send kill for "$known & ::common" @@ -343,8 +343,8 @@ user_excludes = [ 'path:.' if p == '*' else 'path:' + p for p in user_excludes] - req_includes = set(kwargs.get('includepats', [])) - req_excludes = set(kwargs.get('excludepats', [])) + req_includes = set(kwargs.get(r'includepats', [])) + req_excludes = set(kwargs.get(r'excludepats', [])) req_includes, req_excludes, invalid_includes = narrowspec.restrictpatterns( req_includes, req_excludes, user_includes, user_excludes) To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel