[Fusionforge-commits] FusionForge branch master updated. 6edb5bf5923de95c861c71187acddc85ce1b7020

Franck Villaume nerville at fusionforge.org
Sun Jan 18 19:06:12 CET 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  6edb5bf5923de95c861c71187acddc85ce1b7020 (commit)
       via  307b11a71f4f2b66d958d5584292dbf434946e6a (commit)
      from  0adc92ac33f19848d9c9c42a280a4c2c1004b9f8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6edb5bf5923de95c861c71187acddc85ce1b7020
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Jan 18 18:58:31 2015 +0100

    widgets Commits: fix URL post multiscm support

diff --git a/src/common/widget/Widget_MyLatestCommits.class.php b/src/common/widget/Widget_MyLatestCommits.class.php
index 4a8c1ff..fe3b4d9 100644
--- a/src/common/widget/Widget_MyLatestCommits.class.php
+++ b/src/common/widget/Widget_MyLatestCommits.class.php
@@ -47,18 +47,7 @@ class Widget_MyLatestCommits extends Widget {
 	}
 
 	public function _getLinkToCommit($project, $commit_id, $pluginName) {
-		$url = '';
-		switch ($pluginName) {
-			case 'scmsvn': {
-				$url = '/scm/viewvc.php/?root='.$project->getUnixname().'&view=rev&revision='.$commit_id;
-				break;
-			}
-			case 'scmgit': {
-				$url = '/scm/browser.php?group_id='.$project->getID().'&commit='.$commit_id;
-				break;
-			}
-		}
-		return util_make_link($url, _('commit')._(': ').$commit_id);
+		return util_make_link('/scm/browser.php?group_id='.$project->getID().'&commit='.$commit_id, _('commit')._(': ').$commit_id);
 	}
 
 	public function getContent() {
diff --git a/src/common/widget/Widget_ProjectLatestCommits.class.php b/src/common/widget/Widget_ProjectLatestCommits.class.php
index c15deed..30f8562 100644
--- a/src/common/widget/Widget_ProjectLatestCommits.class.php
+++ b/src/common/widget/Widget_ProjectLatestCommits.class.php
@@ -43,19 +43,7 @@ class Widget_ProjectLatestCommits extends Widget {
 	}
 
 	public function _getLinkToCommit($project, $commit_id, $pluginName) {
-		$url = '';
-		switch ($pluginName) {
-			case 'scmsvn': {
-				$url = '/scm/viewvc.php/?root='.$project->getUnixname().'&view=rev&revision='.$commit_id;
-				break;
-			}
-			case 'scmgit': {
-				$url = '/scm/browser.php?group_id='.$project->getID().'&commit='.$commit_id;
-				break;
-			}
-		}
-		return util_make_link($url, _('commit')._(': ').$commit_id);
-		//return '/svn/?func=detailrevision&group_id='.$group_id.'&rev_id='.$commit_id;
+		return util_make_link('/scm/browser.php?group_id='.$project->getID().'&commit='.$commit_id, _('commit')._(': ').$commit_id);
 	}
 
 	public function getContent() {

commit 307b11a71f4f2b66d958d5584292dbf434946e6a
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Jan 18 18:51:11 2015 +0100

    no orphan tabs

diff --git a/src/bin/systasksd b/src/bin/systasksd
index b264ec1..6b6c105 100755
--- a/src/bin/systasksd
+++ b/src/bin/systasksd
@@ -140,9 +140,9 @@ while (true) {
 							array('ERROR', $arr['systask_id']));
 		}
 	}
-	
+
 	usergroups_sync();
-	
+
 	sleep(1);
 }
 

-----------------------------------------------------------------------

Summary of changes:
 src/bin/systasksd                                       |    4 ++--
 src/common/widget/Widget_MyLatestCommits.class.php      |   13 +------------
 src/common/widget/Widget_ProjectLatestCommits.class.php |   14 +-------------
 3 files changed, 4 insertions(+), 27 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list