We have an SVN server accessible with HTTP (and only HTTP) running on a firewalled port on our development system:
dev $ svn checkout http://localhost:1234/proj/trunk
On my workstation, I created a tunnel in my ssh configuration so that I can export from the repository into a staging and deployment location.
bob $ tail -n 3 ~/.ssh/config
Host svn-tun
HostName dev
LocalForward 8080 dev:1234
bob $ ssh -f -N svn-tun
bob $ svn export --force http://localhost:8080/proj/trunk .
What I want to do now is configure subversion (I think) to start the tunnel for me, use HTTP to localhost:8080, and then close the tunnel. I would like it to be as easy as:
$ svn export --force foo://dev-tun/proj/trunk .
Unfortunately I am not a clever man.