Mercurial > hg
comparison hgext/remotefilelog/shallowbundle.py @ 40610:13d4ad8d7801
py3: fix keyword arguments handling in hgext/remotefilelog/
Keys of kwargs on Python 3 should be strings. This patch fixes them by appending
r'' prefixes, and using pycompat.byteskwargs() and pycompat.strkwargs().
Differential Revision: https://phab.mercurial-scm.org/D5259
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 13 Nov 2018 17:41:26 +0300 |
parents | 6f0b6905ef6f |
children | 4e08bbfc6d51 |
comparison
equal
deleted
inserted
replaced
40609:ee9981bc8b44 | 40610:13d4ad8d7801 |
---|---|
144 | 144 |
145 original = repo.shallowmatch | 145 original = repo.shallowmatch |
146 try: | 146 try: |
147 # if serving, only send files the clients has patterns for | 147 # if serving, only send files the clients has patterns for |
148 if source == 'serve': | 148 if source == 'serve': |
149 bundlecaps = kwargs.get('bundlecaps') | 149 bundlecaps = kwargs.get(r'bundlecaps') |
150 includepattern = None | 150 includepattern = None |
151 excludepattern = None | 151 excludepattern = None |
152 for cap in (bundlecaps or []): | 152 for cap in (bundlecaps or []): |
153 if cap.startswith("includepattern="): | 153 if cap.startswith("includepattern="): |
154 raw = cap[len("includepattern="):] | 154 raw = cap[len("includepattern="):] |