[users at bb.net] SVN checkout minimize bandwidth

Paulo Matos pmatos at linki.tools
Tue Sep 27 07:10:28 UTC 2016


Hello,

I am creating a master for a very large project and I watch trunk and a
couple of release branches with a custom branch_fn function in my SVN
poller.

However, when it comes to checking out my guess is that the slave needs
one svn checkout per branch. So, if I watch branches trunk b1, b2 and
b3. I need to have in the slave:
/my-b1
/my-b2
/my-b3
/my-trunk

In order to attempt something like this I have:
class CloneOrUpdateRepo (SVN):

    def __init__ (self):
        SVN.__init__ (self,
                      repourl =
util.Interpolate('svn://linki.tools/svn/softbeta/%(src::branch)s'),
                      workdir = util.Interpolate(WithProperties
(r"%s/../my-%(src::branch)s/", r'builddir')),
                      mode = r'incremental', method='fresh')
        self.haltOnFailure = True


Interpolate doesn't seem to work at all.


How can I solve this and are there any suggestions on minimizing
checkouts? If each branch occupies 2 Gb and I watch 5 branches, that's
10Gb per slave, which is quite beefy.

Kind regards,
-- 
Paulo Matos


More information about the users mailing list