All pastes #574037 Raw Edit

git svn: specifying branches

public text v1 · immutable
·published 2007-06-18 12:19 UTC
rendered paste body
[svn-remote "svn"]
        # to import from a local subversion repo you specify the local
        # url and set rewriteRoot to the original remote path so that you
        # later could just switch the url to the remote one.
        #
        # It is a lot faster to download the whole subversion repo at once
        # (if you can get a copy) and to the import from the local one, because
        # the long network roundtrips are avoided


        #######################################################################
        # URL to the repo:
        #url = file:///var/tmp/vermont
        url = svn+ssh://svn-berlios/svnroot/repos/vermont

        rewriteRoot = svn://svn.berlios.de/vermont

        #######################################################################
        # trunk:
        fetch = trunk/vermont:refs/remotes/svn/trunk

        #######################################################################
        # branches:
        fetch = branches/vermont-concentrator-support-setid-v3:refs/remotes/svn/vermont-concentrator-support-setid-v3
        fetch = branches/vermont-cpp_concentator:refs/remotes/svn/vermont-cpp_concentator
        fetch = branches/vermont-db:refs/remotes/svn/vermont-db
        fetch = branches/vermont-express:refs/remotes/svn/vermont-express
        fetch = branches/vermont-ipfix:refs/remotes/svn/vermont-ipfix
        fetch = branches/vermont-merge-concentrator:refs/remotes/svn/vermont-merge-concentrator
        fetch = branches/vermont-merge-db:refs/remotes/svn/vermont-merge-db
        fetch = branches/vermont-pcap-kernelbuf:refs/remotes/svn/vermont-pcap-kernelbuf
        fetch = branches/vermont-sctp:refs/remotes/svn/vermont-sctp
        fetch = branches/vermont-threadsafeAggregator:refs/remotes/svn/vermont-threadsafeAggregator
        fetch = branches/vermont-xml-configuration:refs/remotes/svn/vermont-xml-configuration

        # on a sane svn layout you would propably just say
        # "git-svn clone svn://svn.berlios.de/vermont -T trunk -t tags -b branches vermont"
        # and git-svn will add lines like this to figure out the branches and tags:

        #branches = branches/*:refs/remotes/*
        #tags = tags/*:refs/remotes/tags/*