[Fusionforge-commits] r6916 - trunk/gforge/plugins/scmbzr/common

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Feb 4 18:05:57 CET 2009


Author: lolando
Date: 2009-02-04 18:05:57 +0100 (Wed, 04 Feb 2009)
New Revision: 6916

Modified:
   trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php
Log:
Added skeleton of a method to create or update a repository

Modified: trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php	2009-02-04 17:05:45 UTC (rev 6915)
+++ trunk/gforge/plugins/scmbzr/common/BzrPlugin.class.php	2009-02-04 17:05:57 UTC (rev 6916)
@@ -265,8 +265,23 @@
 			echo '<hr size="1" />';
 		}
 	}
-}
 
+	function createOrUpdateRepo ($group_id) {
+		$project =& group_get_object($group_id);
+		if (!$project || !is_object($project)) {
+			return false;
+		} elseif ($project->isError()) {
+			return false;
+		}
+		
+		if (! $project->usesPlugin ($this->name)) {
+			return false;
+		}
+		
+		
+	}
+  }
+
 // Local Variables:
 // mode: php
 // c-file-style: "bsd"




More information about the Fusionforge-commits mailing list