Ticket #97: buildbot-svn-switch.patch
| File buildbot-svn-switch.patch, 1.4 kB (added by retracile, 1 year ago) |
|---|
-
buildbot-0.7.5/buildbot/slave/commands.py
old new 1444 1444 self.svnurl = args['svnurl'] 1445 1445 self.sourcedata = "%s\n" % self.svnurl 1446 1446 1447 def sourcedataMatches(self): 1448 """We're using svn switch, so we can always change our url""" 1449 return True 1450 1451 def writeSourcedata(self, res): 1452 """We're using svn switch, so we can always change our url, no need to 1453 track this in a file.""" 1454 return res 1455 1447 1456 def sourcedirIsUpdateable(self): 1448 1457 if os.path.exists(os.path.join(self.builder.basedir, 1449 1458 self.srcdir, ".buildbot-patched")): … … 1455 1464 revision = self.args['revision'] or 'HEAD' 1456 1465 # update: possible for mode in ('copy', 'update') 1457 1466 d = os.path.join(self.builder.basedir, self.srcdir) 1458 command = [self.vcexe, ' update', '--revision', str(revision),1459 '--non-interactive' ]1467 command = [self.vcexe, 'switch', '--revision', str(revision), 1468 '--non-interactive', self.svnurl] 1460 1469 c = ShellCommand(self.builder, command, d, 1461 1470 sendRC=False, timeout=self.timeout, 1462 1471 keepStdout=True)
![[Buildbot Logo]](/trac/chrome/site/header-text-transparent.png)