##// END OF EJS Templates
config: rename options to show_revision_number and show_sha_length...
Mads Kiilerich -
r3651:659bd922 beta
parent child Browse files
Show More
@@ -107,9 +107,9 b' rss_cut_off_limit = 256000'
107 rss_items_per_page = 10
107 rss_items_per_page = 10
108 rss_include_diff = false
108 rss_include_diff = false
109
109
110 ## show hash options for changelog
110 ## options for showing and identifying changesets
111 sha_len = 12
111 show_sha_length = 12
112 sha_show_numeric_rev = true
112 show_revision_number = true
113
113
114
114
115 ## alternative_gravatar_url allows you to use your own avatar server application
115 ## alternative_gravatar_url allows you to use your own avatar server application
@@ -107,9 +107,9 b' rss_cut_off_limit = 256000'
107 rss_items_per_page = 10
107 rss_items_per_page = 10
108 rss_include_diff = false
108 rss_include_diff = false
109
109
110 ## show hash options for changelog
110 ## options for showing and identifying changesets
111 sha_len = 12
111 show_sha_length = 12
112 sha_show_numeric_rev = true
112 show_revision_number = true
113
113
114
114
115 ## alternative_gravatar_url allows you to use your own avatar server application
115 ## alternative_gravatar_url allows you to use your own avatar server application
@@ -107,9 +107,9 b' rss_cut_off_limit = 256000'
107 rss_items_per_page = 10
107 rss_items_per_page = 10
108 rss_include_diff = false
108 rss_include_diff = false
109
109
110 ## show hash options for changelog
110 ## options for showing and identifying changesets
111 sha_len = 12
111 show_sha_length = 12
112 sha_show_numeric_rev = true
112 show_revision_number = true
113
113
114
114
115 ## alternative_gravatar_url allows you to use your own avatar server application
115 ## alternative_gravatar_url allows you to use your own avatar server application
@@ -379,8 +379,8 b' def show_id(cs):'
379 :param cs: changeset instance
379 :param cs: changeset instance
380 """
380 """
381 from rhodecode import CONFIG
381 from rhodecode import CONFIG
382 def_len = safe_int(CONFIG.get('sha_len', 12))
382 def_len = safe_int(CONFIG.get('show_sha_length', 12))
383 show_rev = str2bool(CONFIG.get('sha_show_numeric_rev', True))
383 show_rev = str2bool(CONFIG.get('show_revision_number', True))
384
384
385 raw_id = cs.raw_id[:def_len]
385 raw_id = cs.raw_id[:def_len]
386 if show_rev:
386 if show_rev:
@@ -107,9 +107,9 b' rss_cut_off_limit = 256000'
107 rss_items_per_page = 10
107 rss_items_per_page = 10
108 rss_include_diff = false
108 rss_include_diff = false
109
109
110 ## show hash options for changelog
110 ## options for showing and identifying changesets
111 sha_len = 12
111 show_sha_length = 12
112 sha_show_numeric_rev = true
112 show_revision_number = true
113
113
114
114
115 ## alternative_gravatar_url allows you to use your own avatar server application
115 ## alternative_gravatar_url allows you to use your own avatar server application
General Comments 0
You need to be logged in to leave comments. Login now