changeset 3651:659bd922520e beta

config: rename options to show_revision_number and show_sha_length 'sha_show_numeric_rev' had nothing to do with the sha value. The revision numbers are kind of native to Mercurial and there they are known as 'revision numbers'. 'sha_len' was very short and didn't clarify that it only controlled what was shown. These settings are currently only used in the changelog, but they should be used everywhere.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 03 Apr 2013 15:56:12 +0200
parents 76ae40e514eb
children 8a8a559eaf95
files development.ini production.ini rhodecode/config/deployment.ini_tmpl rhodecode/lib/helpers.py test.ini
diffstat 5 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/development.ini	Wed Apr 03 15:56:12 2013 +0200
+++ b/development.ini	Wed Apr 03 15:56:12 2013 +0200
@@ -107,9 +107,9 @@
 rss_items_per_page = 10
 rss_include_diff = false
 
-## show hash options for changelog
-sha_len = 12
-sha_show_numeric_rev = true
+## options for showing and identifying changesets
+show_sha_length = 12
+show_revision_number = true
 
 
 ## alternative_gravatar_url allows you to use your own avatar server application
--- a/production.ini	Wed Apr 03 15:56:12 2013 +0200
+++ b/production.ini	Wed Apr 03 15:56:12 2013 +0200
@@ -107,9 +107,9 @@
 rss_items_per_page = 10
 rss_include_diff = false
 
-## show hash options for changelog
-sha_len = 12
-sha_show_numeric_rev = true
+## options for showing and identifying changesets
+show_sha_length = 12
+show_revision_number = true
 
 
 ## alternative_gravatar_url allows you to use your own avatar server application
--- a/rhodecode/config/deployment.ini_tmpl	Wed Apr 03 15:56:12 2013 +0200
+++ b/rhodecode/config/deployment.ini_tmpl	Wed Apr 03 15:56:12 2013 +0200
@@ -107,9 +107,9 @@
 rss_items_per_page = 10
 rss_include_diff = false
 
-## show hash options for changelog
-sha_len = 12
-sha_show_numeric_rev = true
+## options for showing and identifying changesets
+show_sha_length = 12
+show_revision_number = true
 
 
 ## alternative_gravatar_url allows you to use your own avatar server application
--- a/rhodecode/lib/helpers.py	Wed Apr 03 15:56:12 2013 +0200
+++ b/rhodecode/lib/helpers.py	Wed Apr 03 15:56:12 2013 +0200
@@ -379,8 +379,8 @@
     :param cs: changeset instance
     """
     from rhodecode import CONFIG
-    def_len = safe_int(CONFIG.get('sha_len', 12))
-    show_rev = str2bool(CONFIG.get('sha_show_numeric_rev', True))
+    def_len = safe_int(CONFIG.get('show_sha_length', 12))
+    show_rev = str2bool(CONFIG.get('show_revision_number', True))
 
     raw_id = cs.raw_id[:def_len]
     if show_rev:
--- a/test.ini	Wed Apr 03 15:56:12 2013 +0200
+++ b/test.ini	Wed Apr 03 15:56:12 2013 +0200
@@ -107,9 +107,9 @@
 rss_items_per_page = 10
 rss_include_diff = false
 
-## show hash options for changelog
-sha_len = 12
-sha_show_numeric_rev = true
+## options for showing and identifying changesets
+show_sha_length = 12
+show_revision_number = true
 
 
 ## alternative_gravatar_url allows you to use your own avatar server application