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

Re: Somebody put me out of my misery!

From: Nick Thompson <nickthompson_at_agere.com>
Date: 2006-02-03 11:50:48 CET

On Friday 03 February 2006 10:28, Ryan Schmidt wrote:
> On Feb 3, 2006, at 05:10, Bryant Eastham wrote:
> > 1. The SSH server is launching the command that it is requested
> > to, "svnserve -t". Issues with paths, but it is working.
> > 2. "svnserve -d" seems to be able to find repositories on
> > different drives, if the path matches, without --root.
> > A. If I just run "svnserve -d" and then use the non-ssh client
> > to connect, it works - even if I move my svn directory to the C:
> > drive.
> > 3. "svnserve -t" does NOT seem to be able to find repositories on
> > different drives. It works if I put the repositories on the C:
> > drive, but fails if they are on the D: drive. Since the client
> > isn't passing a
> > --root option, I'm hosed. Maybe it only checks the drive that
> > subversion
> > is installed in? ;-)
> > 4. I searched for different URL formats, but nothing seems to
> > work. "svn
> > list svn+ssh://<host>/D:/svn/test" fails.
> >
> > Is this behavior of svnserve expected? Is there any way to set
> > the --root option (registry, configuration file, etc.)?
> I haven't used svn+ssh myself, but I think you want to read this
> section of the book:
> http://svnbook.red-bean.com/en/1.1/ch06s03.html#svn-ch-6-sect-3.5

I use Linux, but I imagine the solution is similar for windows. If you
need svnserve (via ssh) to set a root option, then you need to make
svnserve a wrapper script of some sort. So I have:

#!/bin/sh -f
umask 002
exec /opt/subversion/1.2.3/bin/svnserve -r /vol/vol1/sw/svn "$@"

ssh starts the script, which in turn starts the real svnserve.

AFAIK, this is the only way to do it when working via ssh. (Unless
there is a new option in SVN 1.3)

> Nick Thompson
> Agere Systems Ltd
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 3 11:52:29 2006

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