Patchwork [4,of,5] py3: byteify tests/pullext.py

login
register
mail settings
Submitter Matt Harbison
Date Dec. 18, 2018, 6:56 a.m.
Message ID <6de48fd4e5d322f05986.1545116170@Envy>
Download mbox | patch
Permalink /patch/37230/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 18, 2018, 6:56 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1545106106 18000
#      Mon Dec 17 23:08:26 2018 -0500
# Node ID 6de48fd4e5d322f05986427e1dcce150bbf32e47
# Parent  b91464896cc94b6da1420f3d0073dc222d417ce4
py3: byteify tests/pullext.py

# skip-blame for b'' prepending

Patch

diff --git a/tests/pullext.py b/tests/pullext.py
--- a/tests/pullext.py
+++ b/tests/pullext.py
@@ -32,19 +32,19 @@  def featuresetup(ui, features):
     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)