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

Re: Find SVN repository path

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-12-12 11:38:19 CET

On Dec 12, 2007, at 04:04, Durrani [Gmail] wrote:

> I am writing installer for an application.
>
> I am also bundling out svn along with our application installer.

Presumably your application needs to store some data in a Subversion
repository?

> For this I need to know what is the svn repository path in the
> target machine, if SVN is already installed there, so that I can
> use the same repository path for my application.
>
> Please let me know how can i find that.
>
> If i run svnservice -debug i get the following as o/p
>
>
> E:\PROGRA~1\SUBVER~1\bin>svnservice -debug
> Debugging SVNService.
> Setting working directory: E:\PROGRA~1\SUBVER~1\bin\
> RegQueryValueEx failed with error 0, type 1
> Running command: "E:\PROGRA~1\SUBVER~1\bin\svnserve.exe" "--daemon"
> "--root" "E:\svnrepos"
>
> I need to get "E:\svnrepos" without using the above command...
> since this command does not terminate by itself, i can't execute
> this in my application installer.

A user could have any number of repositories already on their machine
in any place on disk, served over either the svn or svn+ssh or http
or https or file protocols. It might be odd to find one of these and
start using them without telling the user. Better to let the user
select which of their existing repositories to use, or let them
create a new one. I know I wouldn't want some app starting to store
data in any of my existing repositories.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 12 11:45:28 2007

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.