Index: app/models/repository/mercurial.rb
===================================================================
--- app/models/repository/mercurial.rb	(revision 8530)
+++ app/models/repository/mercurial.rb	(working copy)
@@ -67,10 +67,6 @@
     changeset.scmid
   end
 
-  def diff_format_revisions(cs, cs_to, sep=':')
-    super(cs, cs_to, ' ')
-  end
-
   # Finds and returns a revision with a number or the beginning of a hash
   def find_changeset_by_name(name)
     return nil if name.nil? || name.empty?
Index: app/models/repository.rb
===================================================================
--- app/models/repository.rb	(revision 8530)
+++ app/models/repository.rb	(working copy)
@@ -144,13 +144,6 @@
     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
Index: app/views/repositories/diff.html.erb
===================================================================
--- app/views/repositories/diff.html.erb	(revision 8530)
+++ app/views/repositories/diff.html.erb	(working copy)
@@ -1,4 +1,9 @@
-<h2><%= l(:label_revision) %> <%= @diff_format_revisions %> <%=h @path %></h2>
+<h2><%= l(:label_revision) %>
+<%= revision_links = ""
+revision_links << link_to_revision(@changeset_to, @project, :text => format_revision(@changeset_to)) + ":" if @changeset_to
+revision_links << link_to_revision(@changeset, @project, :text => format_revision(@changeset)) 
+revision_links %>
+<%=h @path %></h2>
 
 <!-- Choose view type -->
 <% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
Index: app/controllers/repositories_controller.rb
===================================================================
--- app/controllers/repositories_controller.rb	(revision 8530)
+++ app/controllers/repositories_controller.rb	(working copy)
@@ -225,7 +225,6 @@
 
       @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
 
