Index: common.php
===================================================================
--- common.php	(revision 785)
+++ common.php	(working copy)
@@ -1886,6 +1886,20 @@
   return make_cdash_url($diff_url);
 }
 
+/** Return the Fisheye URL */
+function get_fisheye_diff_url($projecturl, $directory, $file, $revision)
+{
+  $prev_revision = get_previous_revision($revision);
+  $diff_url = rtrim($projecturl, '/').($directory ? ("/".$directory) : "")."/".$file;
+  if($prev_revision != $revision) {
+	$diff_url .= "?r1=".$prev_revision."&r2=".$revision;
+  } else {
+	$diff_url .= "?r=".$revision;
+  }
+  return make_cdash_url($diff_url);
+}
+
+
 /** Get the diff url based on the type of viewer */
 function get_diff_url($projectid,$projecturl, $directory, $file, $revision)
 {
@@ -1901,6 +1915,10 @@
     {
     return get_trac_diff_url($projecturl, $directory, $file, $revision);
     }
+  elseif($project_array["cvsviewertype"] == "fisheye")
+    {
+    return get_fisheye_diff_url($projecturl, $directory, $file, $revision);
+    }
   else // default is viewcvs
     {
     return get_viewcvs_diff_url($projecturl, $directory, $file, $revision);
Index: createProject.php
===================================================================
--- createProject.php	(revision 785)
+++ createProject.php	(working copy)
@@ -387,6 +387,7 @@
 // Add the type of CVS/SVN viewers
 $xml .= AddCVSViewer("viewcvs","ViewCVS",$project_array['cvsviewertype']); // first should be lower case
 $xml .= AddCVSViewer("trac","Trac",$project_array['cvsviewertype']);
+$xml .= AddCVSViewer("fisheye","Fisheye",$project_array['cvsviewertype']);
  
 $xml .= "</cdash>";
 
