py3: fix slicing of bisect label in templatefilters.shortbisect()
authorYuya Nishihara <yuya@tcha.org>
Tue, 06 Mar 2018 07:16:41 -0600
changeset 36831 82af07e1ae16
parent 36830 71f189941791
child 36832 6bdea0efdab5
py3: fix slicing of bisect label in templatefilters.shortbisect()
contrib/python3-whitelist
mercurial/templatefilters.py
--- 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')