[Fusionforge-commits] r9316 - trunk/gforge/plugins/scmhg/common

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Mar 31 21:40:08 CEST 2010


Author: aljeux
Date: 2010-03-31 21:40:08 +0200 (Wed, 31 Mar 2010)
New Revision: 9316

Modified:
   trunk/gforge/plugins/scmhg/common/HgPlugin.class.php
Log:
Applied fix [#121] URI presented incorrent in the scmhg plugin

Modified: trunk/gforge/plugins/scmhg/common/HgPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmhg/common/HgPlugin.class.php	2010-03-31 19:39:44 UTC (rev 9315)
+++ trunk/gforge/plugins/scmhg/common/HgPlugin.class.php	2010-03-31 19:40:08 UTC (rev 9316)
@@ -62,10 +62,11 @@
 			$u =& user_get_object(user_getid()) ;
 			$d = $u->getUnixName() ;
 			$b = _('<p><b>Developer Mercurial Access via SSH</b></p><p>Only project developers can access the Mercurial tree via this method. SSH must be installed on your client machine. Enter your site password when prompted.</p>');
-			$b .= '<p><tt>hg clone hg+ssh://'.$d.'@' . $project->getSCMBox() . ':'. $this->hg_root .'/'. $project->getUnixName().'/ .</tt></p>' ;
+			$b .= '<p><tt>hg clone ssh://'.$d.'@' . $project->getSCMBox() . $this->hg_root .'/'. $project->getUnixName().'/ .</tt></p>' ;
 		} else {
+			$d = '<i>developername</i>';
 			$b = _('<p><b>Developer Mercurial Access via SSH</b></p><p>Only project developers can access the Mercurial tree via this method. SSH must be installed on your client machine. Substitute <i>developername</i> with the proper value. Enter your site password when prompted.</p>');
-			$b .= '<p><tt>hg clone hg+ssh://'.$d.'@' . $project->getSCMBox() . ':'. $this->hg_root .'/'. $project->getUnixName().'/ .</tt></p>' ;
+			$b .= '<p><tt>hg clone ssh://'.$d.'@' . $project->getSCMBox() . $this->hg_root .'/'. $project->getUnixName().'/ .</tt></p>' ;
 		}
 		return $b ;
 	}




More information about the Fusionforge-commits mailing list