# HG changeset patch # User Yuya Nishihara # Date 1520342201 21600 # Node ID 82af07e1ae16409fe8f79ce144e8ec9a3ba678c0 # Parent 71f1899417910b5447a32d94f6dfd15c7257943f py3: fix slicing of bisect label in templatefilters.shortbisect() diff -r 71f189941791 -r 82af07e1ae16 contrib/python3-whitelist --- 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 diff -r 71f189941791 -r 82af07e1ae16 mercurial/templatefilters.py --- 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')