diff --git a/kallithea/controllers/files.py b/kallithea/controllers/files.py
--- a/kallithea/controllers/files.py
+++ b/kallithea/controllers/files.py
@@ -779,7 +779,7 @@ class FilesController(BaseRepoController
for chs in changesets:
#_branch = '(%s)' % chs.branch if _hg else ''
_branch = chs.branch
- n_desc = 'r%s:%s (%s)' % (chs.revision, chs.short_id, _branch)
+ n_desc = '%s (%s)' % (h.show_id(chs), _branch)
changesets_group[0].append((chs.raw_id, n_desc,))
hist_l.append(changesets_group)
diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py
--- a/kallithea/lib/helpers.py
+++ b/kallithea/lib/helpers.py
@@ -358,8 +358,7 @@ def pygmentize_annotation(repo_name, fil
" %s
")
tooltip_html = tooltip_html % (author, date, message)
- lnk_format = '%5s:%s' % ('r%s' % changeset.revision,
- short_id(changeset.raw_id))
+ lnk_format = show_id(changeset)
uri = link_to(
lnk_format,
url('changeset_home', repo_name=repo_name,
diff --git a/kallithea/templates/bookmarks/bookmarks_data.html b/kallithea/templates/bookmarks/bookmarks_data.html
--- a/kallithea/templates/bookmarks/bookmarks_data.html
+++ b/kallithea/templates/bookmarks/bookmarks_data.html
@@ -28,7 +28,7 @@
${book[1].revision} |
|
diff --git a/kallithea/templates/branches/branches_data.html b/kallithea/templates/branches/branches_data.html
--- a/kallithea/templates/branches/branches_data.html
+++ b/kallithea/templates/branches/branches_data.html
@@ -29,7 +29,7 @@
| ${branch[1].revision} |
|
@@ -56,7 +56,7 @@
| ${branch[1].revision} |
|
|
diff --git a/kallithea/templates/changeset/changeset.html b/kallithea/templates/changeset/changeset.html
--- a/kallithea/templates/changeset/changeset.html
+++ b/kallithea/templates/changeset/changeset.html
@@ -10,7 +10,7 @@
%def>
<%def name="breadcrumbs_links()">
- ${_('Changeset')} - r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)}
+ ${_('Changeset')} - ${h.show_id(c.changeset)}
%def>
<%def name="page_nav()">
diff --git a/kallithea/templates/changeset/changeset_range.html b/kallithea/templates/changeset/changeset_range.html
--- a/kallithea/templates/changeset/changeset_range.html
+++ b/kallithea/templates/changeset/changeset_range.html
@@ -2,7 +2,7 @@
<%inherit file="/base/base.html"/>
<%def name="title()">
- ${_('%s Changesets') % c.repo_name} - r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)} > r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)}
+ ${_('%s Changesets') % c.repo_name} - ${h.show_id(c.cs_ranges[0])} > ${h.show_id(c.cs_ranges[-1])}
%if c.site_name:
· ${c.site_name}
%endif
@@ -10,9 +10,9 @@
<%def name="breadcrumbs_links()">
${_('Changesets')} -
- r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)}
+ ${h.link_to(h.show_id(c.cs_ranges[0]),h.url('changeset_home',repo_name=c.repo_name,revision=c.cs_ranges[0]))}
- r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)}
+ ${h.link_to(h.show_id(c.cs_ranges[-1]),h.url('changeset_home',repo_name=c.repo_name,revision=c.cs_ranges[-1]))}
%def>
<%def name="page_nav()">
@@ -30,9 +30,9 @@ ${self.repo_context_bar('changelog')}
@@ -58,17 +58,17 @@ ${self.repo_context_bar('changelog')}
${_('Files affected')}
- %for cs in c.cs_ranges:
-
${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
- %for FID, (cs1, cs2, change, path, diff, stats) in c.changes[cs.raw_id].iteritems():
-
-
- ${h.link_to(h.safe_unicode(path),h.url.current(anchor=FID))}
-
-
${h.fancy_file_stats(stats)}
-
- %endfor
- %endfor
+ %for cs in c.cs_ranges:
+
${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
+ %for FID, (cs1, cs2, change, path, diff, stats) in c.changes[cs.raw_id].iteritems():
+
+
+ ${h.link_to(h.safe_unicode(path),h.url.current(anchor=FID))}
+
+
${h.fancy_file_stats(stats)}
+
+ %endfor
+ %endfor
@@ -79,7 +79,7 @@ ${self.repo_context_bar('changelog')}
##${comment.comment_inline_form(cs)}
## diff block
-
${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}
+
${h.show_id(cs)}
diff --git a/kallithea/templates/compare/compare_cs.html b/kallithea/templates/compare/compare_cs.html
--- a/kallithea/templates/compare/compare_cs.html
+++ b/kallithea/templates/compare/compare_cs.html
@@ -23,8 +23,7 @@
${cs.date} |
|
${h.person(cs.author)} |
-
${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.other_repo.repo_name,revision=cs.raw_id))}
- |
+
${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.other_repo.repo_name,revision=cs.raw_id))} |
%if cs.branch:
${cs.branch}
diff --git a/kallithea/templates/files/diff_2way.html b/kallithea/templates/files/diff_2way.html
--- a/kallithea/templates/files/diff_2way.html
+++ b/kallithea/templates/files/diff_2way.html
@@ -19,7 +19,7 @@
%def>
<%def name="breadcrumbs_links()">
- ${_('File diff')} r${c.changeset_1.revision}:${h.short_id(c.changeset_1.raw_id)} → r${c.changeset_2.revision}:${h.short_id(c.changeset_2.raw_id)}
+ ${_('File diff')} ${h.show_id(c.changeset_1)} → ${h.show_id(c.changeset_2)}
%def>
<%def name="page_nav()">
diff --git a/kallithea/templates/files/file_diff.html b/kallithea/templates/files/file_diff.html
--- a/kallithea/templates/files/file_diff.html
+++ b/kallithea/templates/files/file_diff.html
@@ -8,7 +8,7 @@
%def>
<%def name="breadcrumbs_links()">
- ${_('File diff')} r${c.changeset_1.revision}:${h.short_id(c.changeset_1.raw_id)} → r${c.changeset_2.revision}:${h.short_id(c.changeset_2.raw_id)}
+ ${_('File diff')} ${h.show_id(c.changeset_1)} → ${h.show_id(c.changeset_2)}
%def>
<%def name="page_nav()">
diff --git a/kallithea/templates/files/files_browser.html b/kallithea/templates/files/files_browser.html
--- a/kallithea/templates/files/files_browser.html
+++ b/kallithea/templates/files/files_browser.html
@@ -83,7 +83,7 @@
|
%if node.is_file():
%endif
|
diff --git a/kallithea/templates/files/files_edit.html b/kallithea/templates/files/files_edit.html
--- a/kallithea/templates/files/files_edit.html
+++ b/kallithea/templates/files/files_edit.html
@@ -45,7 +45,7 @@ ${self.repo_context_bar('files')}