SVN support for Tinderbox

Beat Gätzi beat at chruetertee.ch
Sat Oct 8 07:56:59 EDT 2011


Hi,

I've created a small patch to add Subversion support for Tinderbox:
http://tmp.chruetertee.ch/tinderbox-svn-support.patch

As Subversion could be used with various protocols (like http(s), svn,
svn+ssh) and the directory structure on the SVN server may vary I've
introduced two new arguments:
-P for the protocol and -D for the directory layout.

So http://svn.freebsd.org/base/head will result in:
-H svn.freebsd.org -P http -D base/head

Some examples:
# cd /usr/local/tinderbox/scripts
# ./tc createPortsTree -p FreeBSD-SVN -u SVN -d "FreeBSD SVN ports tree" \
-w http://www.freebsd.org/cgi/cvsweb.cgi/ports -H area51.pcbsd.org \
-P http -D trunk/ports
FreeBSD-SVN: initializing tree
FreeBSD-SVN: creating top-level directory
FreeBSD-SVN: adding to datastore... done.
FreeBSD-SVN: updating portstree with SVN

# ./tc updatePortsTree -p FreeBSD-SVN
FreeBSD-SVN: updating portstree with SVN

# ./tc createJail -j 10 -u SVN -d "FreeBSD 10" -t . -H svn.freebsd.org \
-P http -D base/head
10: initializing tree
10: creating top-level directory
10: adding to datastore... done.
10: initializing new jail...
10: updating jail with SVN
10: cleaning out /usr/local/tinderbox/jails/10/obj
10: cleaning out /usr/local/tinderbox/jails/10/tmp
10: making world

# ./tc makeJail -j 10
10: updating jail with SVN
10: cleaning out /usr/local/tinderbox/jails/10/obj
10: cleaning out /usr/local/tinderbox/jails/10/tmp
10: making world

If someone is interested in this change please review and test it.

Thanks,
Beat


More information about the tinderbox-list mailing list