Ticket #97: buildbot-svn-switch.patch

File buildbot-svn-switch.patch, 1.4 kB (added by retracile, 1 year ago)

use svn switch instead of svn update

  • buildbot-0.7.5/buildbot/slave/commands.py

    old new  
    14441444        self.svnurl = args['svnurl'] 
    14451445        self.sourcedata = "%s\n" % self.svnurl 
    14461446 
     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 
    14471456    def sourcedirIsUpdateable(self): 
    14481457        if os.path.exists(os.path.join(self.builder.basedir, 
    14491458                                       self.srcdir, ".buildbot-patched")): 
     
    14551464        revision = self.args['revision'] or 'HEAD' 
    14561465        # update: possible for mode in ('copy', 'update') 
    14571466        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
    14601469        c = ShellCommand(self.builder, command, d, 
    14611470                         sendRC=False, timeout=self.timeout, 
    14621471                         keepStdout=True)