D5095: py3: fix test-diff-color.t
mbthomas (Mark Thomas)
phabricator at mercurial-scm.org
Sun Oct 14 05:38:23 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe4f82db071a4: py3: fix test-diff-color.t (authored by mbthomas, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5095?vs=12107&id=12112
REVISION DETAIL
https://phab.mercurial-scm.org/D5095
AFFECTED FILES
contrib/python3-whitelist
mercurial/patch.py
CHANGE DETAILS
diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -2480,7 +2480,7 @@
endspaces = chomp[len(token):]
# scan tabs
for maybetab in tabsplitter.findall(token):
- if '\t' == maybetab[0]:
+ if b'\t' == maybetab[0:1]:
currentlabel = 'diff.tab'
else:
if changed:
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -124,6 +124,7 @@
test-diff-antipatience.t
test-diff-binary-file.t
test-diff-change.t
+test-diff-color.t
test-diff-copy-depth.t
test-diff-hashes.t
test-diff-ignore-whitespace.t
To: mbthomas, pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list