[cig-commits] r21890 - cs/buildbot/trunk/buildbot

brad at geodynamics.org brad at geodynamics.org
Wed Apr 17 17:22:55 PDT 2013


Author: brad
Date: 2013-04-17 17:22:55 -0700 (Wed, 17 Apr 2013)
New Revision: 21890

Modified:
   cs/buildbot/trunk/buildbot/repositories.py
Log:
Added GITRepository.

Modified: cs/buildbot/trunk/buildbot/repositories.py
===================================================================
--- cs/buildbot/trunk/buildbot/repositories.py	2013-04-17 23:36:11 UTC (rev 21889)
+++ cs/buildbot/trunk/buildbot/repositories.py	2013-04-18 00:22:55 UTC (rev 21890)
@@ -118,4 +118,23 @@
         return self.Location(repository=self)
 
 
+class GITRepository(Repository):
+
+    Step = step.Git
+
+    class Location(Repository.Location):
+        def sourceSteps(self, **kwds):
+            return [self.repository.sourceStep(**kwds)]
+
+    def __init__(self, repourl):
+        Repository.__init__(self)
+        self.repourl = repourl
+
+    def sourceStepKwds(self):
+        return {'repourl': self.repourl, 'submodules':True}
+
+    def location(self):
+        return self.Location(repository=self)
+
+
 # end of file



More information about the CIG-COMMITS mailing list