Mercurial > hg-stable
changeset 40996:70a00a8cd66e
py3: byteify tests/pullext.py
# skip-blame for b'' prepending
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 17 Dec 2018 23:08:26 -0500 |
parents | c296b8faa926 |
children | 6a372f943e49 |
files | tests/pullext.py |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/pullext.py Mon Dec 17 21:27:37 2018 -0500 +++ b/tests/pullext.py Mon Dec 17 23:08:26 2018 -0500 @@ -32,19 +32,19 @@ features.add(repository.NARROW_REQUIREMENT) def extsetup(ui): - entry = extensions.wrapcommand(commands.table, 'clone', clonecommand) + entry = extensions.wrapcommand(commands.table, b'clone', clonecommand) - hasinclude = any(x[1] == 'include' for x in entry[1]) - hasdepth = any(x[1] == 'depth' for x in entry[1]) + hasinclude = any(x[1] == b'include' for x in entry[1]) + hasdepth = any(x[1] == b'depth' for x in entry[1]) if not hasinclude: - entry[1].append(('', 'include', [], - _('pattern of file/directory to clone'))) - entry[1].append(('', 'exclude', [], - _('pattern of file/directory to not clone'))) + entry[1].append((b'', b'include', [], + _(b'pattern of file/directory to clone'))) + entry[1].append((b'', b'exclude', [], + _(b'pattern of file/directory to not clone'))) if not hasdepth: - entry[1].append(('', 'depth', '', - _('ancestry depth of changesets to fetch'))) + entry[1].append((b'', b'depth', b'', + _(b'ancestry depth of changesets to fetch'))) localrepo.featuresetupfuncs.add(featuresetup)