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

brad at geodynamics.org brad at geodynamics.org
Wed Apr 17 18:04:32 PDT 2013


Author: brad
Date: 2013-04-17 18:04:31 -0700 (Wed, 17 Apr 2013)
New Revision: 21891

Modified:
   cs/buildbot/trunk/buildbot/repositories.py
Log:
Added branch argument to GITRepository constructor.

Modified: cs/buildbot/trunk/buildbot/repositories.py
===================================================================
--- cs/buildbot/trunk/buildbot/repositories.py	2013-04-18 00:22:55 UTC (rev 21890)
+++ cs/buildbot/trunk/buildbot/repositories.py	2013-04-18 01:04:31 UTC (rev 21891)
@@ -126,12 +126,15 @@
         def sourceSteps(self, **kwds):
             return [self.repository.sourceStep(**kwds)]
 
-    def __init__(self, repourl):
+    def __init__(self, repourl, branch='master'):
         Repository.__init__(self)
         self.repourl = repourl
+        self.branch = branch
 
     def sourceStepKwds(self):
-        return {'repourl': self.repourl, 'submodules':True}
+        return {'repourl': self.repourl, 
+                'branch': self.branch,
+                'submodules': True}
 
     def location(self):
         return self.Location(repository=self)



More information about the CIG-COMMITS mailing list