changeset 4549:dc3f0731b2f7

config: the default for show_revision_number should be false Revision numbers are not really that useful and when shared publicly they can lead to misunderstandings
author domruf <dominikruf@gmail.com>
date Thu, 28 Aug 2014 22:09:27 +0200
parents 521e48c8ffc2
children 1c459ae69571
files development.ini kallithea/bin/template.ini.mako kallithea/config/deployment.ini_tmpl kallithea/lib/helpers.py production.ini
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/development.ini	Thu Oct 02 23:49:16 2014 +0200
+++ b/development.ini	Thu Aug 28 22:09:27 2014 +0200
@@ -192,7 +192,7 @@
 
 ## options for showing and identifying changesets
 show_sha_length = 12
-show_revision_number = true
+show_revision_number = false
 
 ## gist URL alias, used to create nicer urls for gist. This should be an
 ## url that does rewrites to _admin/gists/<gistid>.
--- a/kallithea/bin/template.ini.mako	Thu Oct 02 23:49:16 2014 +0200
+++ b/kallithea/bin/template.ini.mako	Thu Aug 28 22:09:27 2014 +0200
@@ -189,7 +189,7 @@
 
 <%text>## options for showing and identifying changesets</%text>
 show_sha_length = 12
-show_revision_number = true
+show_revision_number = false
 
 <%text>## gist URL alias, used to create nicer urls for gist. This should be an</%text>
 <%text>## url that does rewrites to _admin/gists/<gistid>.</%text>
--- a/kallithea/config/deployment.ini_tmpl	Thu Oct 02 23:49:16 2014 +0200
+++ b/kallithea/config/deployment.ini_tmpl	Thu Aug 28 22:09:27 2014 +0200
@@ -186,7 +186,7 @@
 
 ## options for showing and identifying changesets
 show_sha_length = 12
-show_revision_number = true
+show_revision_number = false
 
 ## gist URL alias, used to create nicer urls for gist. This should be an
 ## url that does rewrites to _admin/gists/<gistid>.
--- a/kallithea/lib/helpers.py	Thu Oct 02 23:49:16 2014 +0200
+++ b/kallithea/lib/helpers.py	Thu Aug 28 22:09:27 2014 +0200
@@ -458,7 +458,7 @@
     """
     from kallithea import CONFIG
     def_len = safe_int(CONFIG.get('show_sha_length', 12))
-    show_rev = str2bool(CONFIG.get('show_revision_number', True))
+    show_rev = str2bool(CONFIG.get('show_revision_number', False))
 
     raw_id = cs.raw_id[:def_len]
     if show_rev:
--- a/production.ini	Thu Oct 02 23:49:16 2014 +0200
+++ b/production.ini	Thu Aug 28 22:09:27 2014 +0200
@@ -190,7 +190,7 @@
 
 ## options for showing and identifying changesets
 show_sha_length = 12
-show_revision_number = true
+show_revision_number = false
 
 ## gist URL alias, used to create nicer urls for gist. This should be an
 ## url that does rewrites to _admin/gists/<gistid>.