# HG changeset patch # User Marcin Kuzminski # Date 2018-10-01 13:57:56 # Node ID a07a13220f58493c95b13df24f56871f3a688696 # Parent 4de59e0f3132aa2365999342759c43c4febf8fe1 core: stop using deprecated .revision diff --git a/rhodecode/templates/codeblocks/source.mako b/rhodecode/templates/codeblocks/source.mako --- a/rhodecode/templates/codeblocks/source.mako +++ b/rhodecode/templates/codeblocks/source.mako @@ -9,7 +9,7 @@ %> @@ -28,11 +28,11 @@ - r${annotation.revision} + r${annotation.idx} % else: @@ -40,8 +40,8 @@ % endif diff --git a/rhodecode/templates/compare/compare_diff.mako b/rhodecode/templates/compare/compare_diff.mako --- a/rhodecode/templates/compare/compare_diff.mako +++ b/rhodecode/templates/compare/compare_diff.mako @@ -48,7 +48,7 @@ % if c.commit_ranges: - r${c.source_commit.revision}:${h.short_id(c.source_commit.raw_id)}...r${c.target_commit.revision}:${h.short_id(c.target_commit.raw_id)} + r${c.source_commit.idx}:${h.short_id(c.source_commit.raw_id)}...r${c.target_commit.idx}:${h.short_id(c.target_commit.raw_id)} % endif diff --git a/rhodecode/templates/files/files_browser.mako b/rhodecode/templates/files/files_browser.mako --- a/rhodecode/templates/files/files_browser.mako +++ b/rhodecode/templates/files/files_browser.mako @@ -8,7 +8,7 @@ -
${h.text('at_rev',value=c.commit.revision)}
+
${h.text('at_rev',value=c.commit.idx)}
diff --git a/rhodecode/templates/files/files_browser_tree.mako b/rhodecode/templates/files/files_browser_tree.mako --- a/rhodecode/templates/files/files_browser_tree.mako +++ b/rhodecode/templates/files/files_browser_tree.mako @@ -59,7 +59,7 @@ % if c.full_load:
-
r${node.last_commit.revision}:${node.last_commit.short_id}
+
r${node.last_commit.idx}:${node.last_commit.short_id}
% endif diff --git a/rhodecode/templates/pullrequests/pullrequest_show.mako b/rhodecode/templates/pullrequests/pullrequest_show.mako --- a/rhodecode/templates/pullrequests/pullrequest_show.mako +++ b/rhodecode/templates/pullrequests/pullrequest_show.mako @@ -511,7 +511,7 @@ - r${commit.revision}:${h.short_id(commit.raw_id)} + r${commit.idx}:${h.short_id(commit.raw_id)} ${h.hidden('revisions', commit.raw_id)}