[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnserve + ssh

From: Ed MacDonald <edmacdonald_at_hotmail.com>
Date: 2004-07-29 01:16:19 CEST

Re: svnserve + sshI haven't see it discussed here (other than an unanswerd
question I posed a while back) but I have found, in my very limited
experience, that running svn over ssh is much faster than running svn+ssh.
And, it will let you do what you want.

On the server:
svnserve --daemon --root=/path/to/repositories/

On the client, when you wake up in the morning, set up an ssh tunnel and
leave it up all day long:
ssh -L 3690:host.example.com:3690

Then do your svn stuff but pretend the server is running locally - ssh will
tunnel the request to the real server:
myhost$ svn co svn://localhost/myrepo

If you do a lot of small transactions, you will notice a significant
performance increase since the svnserve process is waiting instead of being
spawned on each request as with svn+ssh.

Ed

----- Original Message -----
From: Peter D. Barnes, Jr.
To: users@subversion.tigris.org
Sent: Wednesday, July 28, 2004 2:19 PM
Subject: Re: svnserve + ssh

Hello Folks,

        Is there a response to Marcin's original question? (I can't seem to
find it in this thread.)

To rephrase:

To check out myrepo from host to the current directory on myhost, the
following command

        myhost$ svn co svn://host.example.com/myrepo

can be made to look for myrepo in /path/to/repositories/ by setting up
inetd, for example, to call

        svnserve --inetd --root=/path/to/repositories/

1. Can I configure svn to default to a particular root, for example using
~/.subversion/config? That is, can I configure so

        host$ svn co file:///myrepo

looks for myrepo in /path/to/repositories/ ?

2. Would this also work for svn+ssh://host.example.com/ ?

Thanks,
Peter

Date: Thu, 23 Oct 2003 23:30:09 +0200
From: Marcin Gil <mgil@vernet.pl>

But I don't know how to restrict it to a required directory.
My repo lies in /home/svn, so my URI looks like this:
svn co svn+ssh://repo.vernet.pl/home/svn/bip/trunk

How can I restrict (like running svnserve -r) svn through ssh?

-- 
-----------------------------------------------------------------------
Peter D. Barnes, Jr.                    N-Division
Lawrence Livermore National Laboratory  Physics and Advanced Technology
7000 East Avenue, L-50                  email:  pdbarnes@llnl.gov
P. O. Box 808                           Voice:  (925) 422-3384
Livermore, California 94550             Fax:    (925) 423-3371
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 29 01:18:01 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.