changeset 7834:e6b9194ab3f8

scm: select options should be tuples - not lists with 2 elements We use tuples in all(?) other places, so we should do the same here. Since lists can be unpacked as tuples, it currently works to use 2-lists. But in a following change for "correct" handling of webhelpers.select when using webhelpers2.select, we want to give special handling to tuples vs strings vs Options. We don't want to add list to that list.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 18 Aug 2019 19:50:49 +0200
parents 52637097d62f
children 41f780117963
files kallithea/model/scm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/model/scm.py	Sun Aug 18 18:33:35 2019 +0200
+++ b/kallithea/model/scm.py	Sun Aug 18 19:50:49 2019 +0200
@@ -665,7 +665,7 @@
         hist_l = []
         choices = []
         repo = self.__get_repo(repo)
-        hist_l.append(['rev:tip', _('latest tip')])
+        hist_l.append(('rev:tip', _('latest tip')))
         choices.append('rev:tip')
         if repo is None:
             return choices, hist_l