|
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members
"""BitKeeper-specific VC operation. In addition to the arguments handled by SourceBaseCommand, this command reads the following keys:
['bkurl'] (required): the BK repository string """
self.bk_args.extend(args['extra_args'])
self.srcdir, ".buildbot-patched")): return False self.srcdir, "BK/parent"))
bk = self.getCommand('bk') # XXX revision is never used!! - bug #1715 # revision = self.args['revision'] or 'HEAD' # update: possible for mode in ('copy', 'update') d = os.path.join(self.builder.basedir, self.srcdir)
# Revision is ignored since the BK free client doesn't support it. command = [bk, 'pull'] c = runprocess.RunProcess(self.builder, command, d, sendRC=False, timeout=self.timeout, keepStdout=True, logEnviron=self.logEnviron, usePTY=False) self.command = c return c.start()
[self.bkurl, self.srcdir] sendRC=False, timeout=self.timeout, logEnviron=self.logEnviron, usePTY=False)
""" Get the (shell) command used to determine BK revision number of checked-out code
return: list of strings, passable as the command argument to RunProcess """
self.getBKVersionCommand(), os.path.join(self.builder.basedir, self.srcdir), environ=self.env, timeout=self.timeout, sendStdout=False, sendStderr=False, sendRC=False, keepStdout=True, logEnviron=self.logEnviron, usePTY=False) except: msg = ("BK.parseGotRevision unable to parse output: (%s)" % r_raw) log.msg(msg) self.sendStatus({'header': msg + "\n"}) raise ValueError(msg)
|