@changeset = @repository.find_changeset_by_name(@rev)
@changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : nil
+ @diff_format_revisions = @repository.diff_format_revisions(@changeset, @changeset_to)
end
end
-
+
def stats
end
def diff(path, rev, rev_to)
scm.diff(path, rev, rev_to)
end
-
+
+ def diff_format_revisions(cs, cs_to, sep=':')
+ text = ""
+ text << cs_to.format_identifier + sep if cs_to
+ text << cs.format_identifier if cs
+ text
+ end
+
# Returns a path relative to the url of the repository
def relative_path(path)
path
-<h2><%= l(:label_revision) %> <%= format_revision(@changeset_to) + ':' if @changeset_to %><%= format_revision(@changeset) %> <%=h @path %></h2>
+<h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
<!-- Choose view type -->
<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>