# HG changeset patch # User domruf # Date 1409256567 -7200 # Node ID dc3f0731b2f7997c3c3fa0292db769bf3d3bcf3a # Parent 521e48c8ffc2f6c08ba236d7acbdeb90043d03c3 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 diff -r 521e48c8ffc2 -r dc3f0731b2f7 development.ini --- 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/. diff -r 521e48c8ffc2 -r dc3f0731b2f7 kallithea/bin/template.ini.mako --- 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 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>## url that does rewrites to _admin/gists/. diff -r 521e48c8ffc2 -r dc3f0731b2f7 kallithea/config/deployment.ini_tmpl --- 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/. diff -r 521e48c8ffc2 -r dc3f0731b2f7 kallithea/lib/helpers.py --- 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: diff -r 521e48c8ffc2 -r dc3f0731b2f7 production.ini --- 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/.