Changeset - 659bd922520e
[Not reviewed]
beta
0 5 0
Mads Kiilerich - 13 years ago 2013-04-03 15:56:12
madski@unity3d.com
Grafted from: c6f2ffdcf0c1
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.
5 files changed with 14 insertions and 14 deletions:
0 comments (0 inline, 0 general)
development.ini
Show inline comments
 
@@ -104,15 +104,15 @@ git_rev_filter=--all
 

	
 
## RSS feed options
 
rss_cut_off_limit = 256000
 
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
 
## the following parts of the URL will be replaced
 
## {email}        user email
 
## {md5email}     md5 hash of the user email (like at gravatar.com)
production.ini
Show inline comments
 
@@ -104,15 +104,15 @@ git_rev_filter=--all
 

	
 
## RSS feed options
 
rss_cut_off_limit = 256000
 
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
 
## the following parts of the URL will be replaced
 
## {email}        user email
 
## {md5email}     md5 hash of the user email (like at gravatar.com)
rhodecode/config/deployment.ini_tmpl
Show inline comments
 
@@ -104,15 +104,15 @@ git_rev_filter=--all
 

	
 
## RSS feed options
 
rss_cut_off_limit = 256000
 
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
 
## the following parts of the URL will be replaced
 
## {email}        user email
 
## {md5email}     md5 hash of the user email (like at gravatar.com)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -376,14 +376,14 @@ def show_id(cs):
 
    Configurable function that shows ID
 
    by default it's r123:fffeeefffeee
 

	
 
    :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:
 
        return 'r%s:%s' % (cs.revision, raw_id)
 
    else:
 
        return '%s' % (raw_id)
test.ini
Show inline comments
 
@@ -104,15 +104,15 @@ git_rev_filter=--all
 

	
 
## RSS feed options
 
rss_cut_off_limit = 256000
 
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
 
## the following parts of the URL will be replaced
 
## {email}        user email
 
## {md5email}     md5 hash of the user email (like at gravatar.com)
0 comments (0 inline, 0 general)