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

RE: Newbie: running svnserve on win32 as a service

From: Olivier Lange <olange_at_petit-atelier.ch>
Date: 2003-04-25 03:55:32 CEST

> Jeff Cave wrote:
>> By appending a pipe (|) to the drive you can specify it.

Thanks for the suggestion. I tried with:

  svnserve -d -r file://f|/database/svnroot
  svnserve -d -r file:///f|/database/svnroot
  svnserve -d -r f|/database/svnroot

It does not work on the command line (invalid path), but the funny thing is that when ran from FireDaemon, SVN does not complain about the URL (no "bogus filename" message in the service logfile). But it does not serve any content from the repository neither, as I mentionned previously.

Branko Cibej wrote:
> Nope, it can't work because svnserve uses local paths, not URLs, to
> specify the repository.

Actually, when I run

  svnserve -d -r file://f:/database/svnroot
  svnserve -d -r file:///f:/database/svnroot

svnserve just starts without complaining about "bogus filename", but the repository content is not accessible ("no repository found in svn://localhost" errors). Perhaps should svnserve report a "bogus filename: URLs are not supported" message?

Anyway, when I run (on the win2000 command line):

  svnserve -d -r f:\database\svnroot

or even

  svnserve -d -r f:/database/svnroot

anything works fine: 'svn list svn://localhost' lists nicely the repository contents. So it is not a matter of specifying absolute paths including the logical drive letter 'F:' as Jeff suggested.

But the problem remains:

If I try to wrap the same command with FireDaemon, svnserve behaves strangely: it reports "svn: bogus filename; svn: couldn't determine absolute path of 'f:/database/svnroot'", although the same command runs fine when executed on the command line!

The only thing I noticed is that the path is always rewritten to 'f:/database/svnroot' (slash) in svnserve's output message, even if the process is started with 'C:\PROGRA~1\Subversion\svnserve -d -r f:\database\svnroot' (backslash).

I do not know where to head to:

- could there be some problem with FireDaemon (which would not log the exact command processed)?
- did someone manage to get it running with another wrapper?
- or is svnserve behaving strangely when started as a subprocess of another controling program (i.e. FireDaemon)?

Olivier

--
Le Petit Atelier de Genie logiciel
-----Message d'origine-----
De : Branko Cibej [mailto:brane@xbc.nu]
Envoyé : vendredi, 25. avril 2003 01:00
À : Jeff Cave
Cc : Olivier Lange; dev@subversion.tigris.org
Objet : Re: Newbie: running svnserve on win32 as a service
Jeff Cave wrote:
>I remember reading in the manual that svn does not like drive references so if you are running it off 'C:'...
>
Where (and when) did you read this? It's simply not true.
>  > svnserve -d -r /database/svnroot
>
>would be the right command.
>
>Since you are not we have a problem. I did notice, in the mailing list, a way to specify drives. In your case...
>
>  > svnserve -d -r file:///f|/database/svnroot
>
>By appending a pipe (|) to the drive you can specify it. I haven't tried this yet, so if it doesn't work I'll just run back to my corner and let someone else give you a hand.
>
Nope, it can't work because svnserve uses local paths, not URLs, to
specify the repository.
I think you're confused by the fact that, long ago, Subversion didn't
understand drive references in file:// URLs. But that was _really_ long
ago. :-)
-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 25 07:10:57 2003

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

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