changeset 36831:82af07e1ae16

py3: fix slicing of bisect label in templatefilters.shortbisect()
author Yuya Nishihara <yuya@tcha.org>
date Tue, 06 Mar 2018 07:16:41 -0600
parents 71f189941791
children 6bdea0efdab5
files contrib/python3-whitelist mercurial/templatefilters.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Tue Mar 06 07:15:01 2018 -0600
+++ b/contrib/python3-whitelist	Tue Mar 06 07:16:41 2018 -0600
@@ -18,6 +18,7 @@
 test-bheads.t
 test-bisect.t
 test-bisect2.t
+test-bisect3.t
 test-blackbox.t
 test-bookmarks-current.t
 test-bookmarks-merge.t
--- a/mercurial/templatefilters.py	Tue Mar 06 07:15:01 2018 -0600
+++ b/mercurial/templatefilters.py	Tue Mar 06 07:16:41 2018 -0600
@@ -349,7 +349,7 @@
     is not a valid bisection status.
     """
     if label:
-        return label[0].upper()
+        return label[0:1].upper()
     return ' '
 
 @templatefilter('shortdate')