Attached Files | stash.diff [^] (1,870 bytes) 2014-09-23 09:18 [Show Content] [Hide Content]diff -cr /tmp/CDash-2-0-2/cdash/repository.php CDash-2-0-2/cdash/repository.php
*** /tmp/CDash-2-0-2/cdash/repository.php 2012-03-01 09:06:46.000000000 +0100
--- CDash-2-0-2/cdash/repository.php 2014-09-23 14:45:46.751250665 +0200
***************
*** 464,469 ****
--- 464,481 ----
return make_cdash_url($diff_url);
}
+ /** Return the Stash diff URL */
+ function get_stash_diff_url($projecturl, $directory, $file, $revision)
+ {
+ $diff_url = $projecturl . "/browse/";
+ if($directory)
+ {
+ $diff_url .= $directory . "/";
+ }
+ $diff_url .= $file . "?until=" . $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='')
{
***************
*** 597,602 ****
--- 609,621 ----
return make_cdash_url($revision_url);
}
+ /** Return the Stash revision URL */
+ function get_stash_revision_url($projecturl, $revision, $priorrevision)
+ {
+ $revision_url = $projecturl. "/commits/" . $revision;
+ return make_cdash_url($revision_url);
+ }
+
/** Return the global revision URL (not file based) for a repository */
function get_revision_url($projectid, $revision, $priorrevision)
{
diff -cr /tmp/CDash-2-0-2/createProject.php CDash-2-0-2/createProject.php
*** /tmp/CDash-2-0-2/createProject.php 2012-03-01 09:06:54.000000000 +0100
--- CDash-2-0-2/createProject.php 2014-09-23 14:24:11.717971059 +0200
***************
*** 571,576 ****
--- 571,577 ----
$xml .= AddCVSViewer("cgit","cgit",$Project->CvsViewerType);
$xml .= AddCVSViewer("redmine","Redmine",$Project->CvsViewerType);
$xml .= AddCVSViewer("hgweb","hgweb",$Project->CvsViewerType);
+ $xml .= AddCVSViewer("stash","Atlassian Stash",$Project->CvsViewerType);
$xml .= add_XML_value("nrepositories",$nRepositories); // should be at the end
|