[Buildbot-commits] buildbot/buildbot/process step.py,1.64,1.65
Brian Warner
warner at users.sourceforge.net
Tue May 10 08:10:54 UTC 2005
Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31385/buildbot/process
Modified Files:
step.py
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-145
Creator: Brian Warner <warner at monolith.lothar.com>
added 'cogito' support, patch from Brandon Philips
* buildbot/process/step.py (Git): added support for 'cogito' (aka 'git'),
the new linux kernel VC system (http://kernel.org/git/). Thanks to
Brandon Philips for the patch.
* buildbot/slave/commands.py (Git): same
Index: step.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/step.py,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- step.py 3 May 2005 20:02:01 -0000 1.64
+++ step.py 10 May 2005 08:10:36 -0000 1.65
@@ -970,6 +970,7 @@
self.args['patch'] = patch
self.startVC()
+
class CVS(Source):
"""I do CVS checkout/update operations.
@@ -1104,7 +1105,6 @@
ShellCommand.start(self)
-
class SVN(Source):
"""I perform Subversion checkout/update operations."""
@@ -1162,6 +1162,7 @@
self.cmd = LoggedRemoteCommand("svn", self.args)
ShellCommand.start(self, errorMessage)
+
class Darcs(Source):
"""Check out a source tree from a Darcs repository at 'repourl'.
@@ -1190,6 +1191,27 @@
self.cmd = LoggedRemoteCommand("darcs", self.args)
ShellCommand.start(self)
+
+class Git(Source):
+ """Check out a source tree from a git repository 'repourl'."""
+
+ name = "git"
+
+ def __init__(self, repourl, **kwargs):
+ """
+ @type repourl: string
+ @param repourl: the URL which points at the git repository
+ """
+ Source.__init__(self, **kwargs)
+ self.args['repourl'] = repourl
+
+ def startVC(self):
+ slavever = self.slaveVersion("git")
+ assert slavever, "slave is too old, does not know about git"
+ self.cmd = LoggedRemoteCommand("git", self.args)
+ ShellCommand.start(self)
+
+
class Arch(Source):
"""Check out a source tree from an Arch repository named 'archive'
available at 'url'. 'version' specifies which version number (development
More information about the Commits
mailing list