You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by alexus <al...@gmail.com> on 2008/01/25 20:08:48 UTC

svn://

hi

is there a way to be able to run svnserver (as stand alone) not
through http(apache) and being able to access multiple repos at the
same time?

svn://127.0.0.1/repo1 svn://127.0.0.1/repo2

in another words where repo1 and repo2 is two different repos

-- 
http://alexus.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by alexus <al...@gmail.com>.
i run it on *NIX type of OS, so your instructions isn't helping me..
:( do you know how to do it on *NIX?


On Jan 26, 2008 7:47 AM, Jeremiah van Oosten <jp...@hotmail.com> wrote:
> The answer to that question depends on the type of OS you are using.
>
>
> If you are using Windows NT/2000/XP, you can read this document: http://svn.collab.net/repos/svn/trunk/notes/windows-service.txt .
>
> To summerize:
>
> You can run svnserve as a service on Windows NT derived OS. You can install svnserve as a service using the SC command on a windows command line prompt (more on this later).
> I have created a folder in my Subversion installation directory (I recommend you keep your SVN depots on a separate physical drive (or at least a different partition) than your OS - You don't want to accidently lose the depots the next time you have to reformat your HDD because Windows is getting too corrupt ;)  For example, I have my OS installed at c:\WINDOWS, but I have my subversion depot at d:\Subversion\depot\. The "depot" folder is the root folder where you will store all your repositories (ie: repo1, repo2).
> Then, create a batch script file that will create the windows service for you. This is what my batch file looks like (CreateService.bat):
>
>        @echo off
>
>        # Note: Subversion will run on default port 3690 when no port is specified.
>
>        net stop subversion
>        sc delete subversion
>        sc create subversion binPath= "d:\subversion\bin\svnserve.exe --service --root ""D:\Subversion\depot\""" DisplayName= "SVN Service" depend= tcpip start= auto
>        net start subversion
>
>        PAUSE
>
> (Make sure there are no line breaks in the line that reads "sc create ... start= auto"). Of course, you will have to substitute the paths for the correct location of where you installed subversion and where your depot directory actually is. And yes, all the quotation marks are necessary in a batch file.
> You'll notice that I first stop and delete the service. That's because you can't modify an existing service without deleting it first.
>
> I also have a script to start, and stop the service (StartService.bat):
>
> To start the service:
>
>        @echo off
>
>        net start subversion
>
>        PAUSE
>
> To Stop the service (StopService.bat):
>
>        @echo off
>
>        net stop subversion
>
>        PAUSE
>
> And to delete the service (DeleteService.bat):
>
>        @echo off
>
>        net stop subversion
>        sc delete subversion
>
>        PAUSE
>
> If you wan't to create another service on the same computer, just change the service name from "subversion", to something else like "subversion2", but you'll have to add the "--listen-port" parameter so that you don't have two instances of svnserve that are listening on the same port. Then you would change your command to something like this:
>
>        sc create subversion binPath= "d:\subversion\bin\svnserve.exe --service "--listen-port 3691 --root ""D:\Subversion\depot\""" DisplayName= "SVN Service" depend= tcpip start= auto
>
> Creating a second service would be necessary if you have serveral repositories at different root depot locations.
>
> Regarding the multiple depots with the same root depot location, do not make the root depot folder an SVN depot (in my case D:\Subversion\depot\), instead, add a subdirectory in the root folder and create a depot out of that.
> For example: Create a subdirectory called "repo1" at d:\Subversion\depot\repo1\, then (I like to use TortoiseSVN), create the depot buy either right-clicking the subfolder in windows explorer and select "TortoiseSVN->Create Repository Here..." and select the file system type (I recommend FSFS), and your done. Or using the svnadmin command-line tool:
>        svnadmin create d:\Subversion\deopt\repo1
>
> You can then access your repository as an svn server from your local machine with the URL: svn://localhost/repo1
>
> To set up a second repository, just create another subdirectory in the "d:\Subversion\depot" folder (lets call it "repo2") and the use the svnadmin command again:
>        svnadmin create d:\Subversion\deopt\repo2
>
> Then, you can already access it using the URL: svn://localhost/repo2.
>
> Easy?
>
> Regards,
>
> Jeremiah van Oosten
>
>
> -----Original Message-----
> From: alexus [mailto:alexus@gmail.com]
> Sent: Friday, January 25, 2008 9:09 PM
> To: users@subversion.tigris.org
> Subject: svn://
>
> hi
>
> is there a way to be able to run svnserver (as stand alone) not
> through http(apache) and being able to access multiple repos at the
> same time?
>
> svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
>
> in another words where repo1 and repo2 is two different repos
>
> --
> http://alexus.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
>



-- 
http://alexus.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: svn://

Posted by Jeremiah van Oosten <jp...@hotmail.com>.
The answer to that question depends on the type of OS you are using.


If you are using Windows NT/2000/XP, you can read this document: http://svn.collab.net/repos/svn/trunk/notes/windows-service.txt .

To summerize:

You can run svnserve as a service on Windows NT derived OS. You can install svnserve as a service using the SC command on a windows command line prompt (more on this later).
I have created a folder in my Subversion installation directory (I recommend you keep your SVN depots on a separate physical drive (or at least a different partition) than your OS - You don't want to accidently lose the depots the next time you have to reformat your HDD because Windows is getting too corrupt ;)  For example, I have my OS installed at c:\WINDOWS, but I have my subversion depot at d:\Subversion\depot\. The "depot" folder is the root folder where you will store all your repositories (ie: repo1, repo2).
Then, create a batch script file that will create the windows service for you. This is what my batch file looks like (CreateService.bat):

	@echo off

	# Note: Subversion will run on default port 3690 when no port is specified.
	
	net stop subversion
	sc delete subversion
	sc create subversion binPath= "d:\subversion\bin\svnserve.exe --service --root ""D:\Subversion\depot\""" DisplayName= "SVN Service" depend= tcpip start= auto 
	net start subversion
	
	PAUSE

(Make sure there are no line breaks in the line that reads "sc create ... start= auto"). Of course, you will have to substitute the paths for the correct location of where you installed subversion and where your depot directory actually is. And yes, all the quotation marks are necessary in a batch file.
You'll notice that I first stop and delete the service. That’s because you can't modify an existing service without deleting it first.

I also have a script to start, and stop the service (StartService.bat):

To start the service:

	@echo off

	net start subversion

	PAUSE

To Stop the service (StopService.bat):

	@echo off
	
	net stop subversion
	
	PAUSE

And to delete the service (DeleteService.bat):

	@echo off
	
	net stop subversion
	sc delete subversion
	
	PAUSE

If you wan't to create another service on the same computer, just change the service name from "subversion", to something else like "subversion2", but you'll have to add the "--listen-port" parameter so that you don't have two instances of svnserve that are listening on the same port. Then you would change your command to something like this:

	sc create subversion binPath= "d:\subversion\bin\svnserve.exe --service "--listen-port 3691 --root ""D:\Subversion\depot\""" DisplayName= "SVN Service" depend= tcpip start= auto

Creating a second service would be necessary if you have serveral repositories at different root depot locations.

Regarding the multiple depots with the same root depot location, do not make the root depot folder an SVN depot (in my case D:\Subversion\depot\), instead, add a subdirectory in the root folder and create a depot out of that.
For example: Create a subdirectory called "repo1" at d:\Subversion\depot\repo1\, then (I like to use TortoiseSVN), create the depot buy either right-clicking the subfolder in windows explorer and select "TortoiseSVN->Create Repository Here..." and select the file system type (I recommend FSFS), and your done. Or using the svnadmin command-line tool:
	svnadmin create d:\Subversion\deopt\repo1

You can then access your repository as an svn server from your local machine with the URL: svn://localhost/repo1

To set up a second repository, just create another subdirectory in the "d:\Subversion\depot" folder (lets call it "repo2") and the use the svnadmin command again:
	svnadmin create d:\Subversion\deopt\repo2

Then, you can already access it using the URL: svn://localhost/repo2.

Easy?

Regards,

Jeremiah van Oosten

-----Original Message-----
From: alexus [mailto:alexus@gmail.com] 
Sent: Friday, January 25, 2008 9:09 PM
To: users@subversion.tigris.org
Subject: svn://

hi

is there a way to be able to run svnserver (as stand alone) not
through http(apache) and being able to access multiple repos at the
same time?

svn://127.0.0.1/repo1 svn://127.0.0.1/repo2

in another words where repo1 and repo2 is two different repos

-- 
http://alexus.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: svn://

Posted by Mark Phippard <ma...@gmail.com>.
On Jan 25, 2008 3:08 PM, alexus <al...@gmail.com> wrote:

> is there a way to be able to run svnserver (as stand alone) not
> through http(apache) and being able to access multiple repos at the
> same time?

svnserve does not use Apache.  There is no way to run it but standalone.

Start it like this:

svnserve -d -r /parent/path

Where repos1 and repos2 live in /parent/path


-- 
Thanks

Mark Phippard
http://markphip.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 27, 2008, at 03:02, alexus wrote:

> On Jan 27, 2008 4:00 AM, Ryan Schmidt wrote:
>
>> On Jan 27, 2008, at 03:00, alexus wrote:
>>
>>> On Jan 25, 2008 3:12 PM, Ryan Schmidt wrote:
>>>
>>>> On Jan 25, 2008, at 14:08, alexus wrote:
>>>>
>>>>> is there a way to be able to run svnserver (as stand alone) not
>>>>> through http(apache) and being able to access multiple repos at  
>>>>> the
>>>>> same time?
>>>>>
>>>>> svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
>>>>>
>>>>> in another words where repo1 and repo2 is two different repos
>>>>
>>>> Sure. Just start svnserve with something like this:
>>>>
>>>> svnserve -r /path/to/directory/containing/repositories
>>>
>>> you mean svnserve -r /dir1 /dir2 /dir3
>>>
>>> like that? because i have more the one directory that contains
>>> different repos
>>
>> No, you can only specify a single parent directory. If you want
>> multiple parent directories each of which contain multiple
>> repositories, you'll have to run multiple instances of svnserve on
>> different ports.
>
> that's sucks...

Yes, well.... :)

If the multiple ports and multiple instances of svnserve are the  
concern, then an option is to use apache instead. Apache has always  
been the more full-featured serving solution, and you can specify  
different locations mapping to different parent directories like this:

<Location /location1>
	DAV svn
	SVNParentPath /path/to/dir1
</Location>
<Location /location2>
	DAV svn
	SVNParentPath /path/to/dir2
</Location>

It has been suggested before that it would be interesting for the  
SVNParentPath feature of mod_dav_svn within apache (and, similarly,  
the -r option on svnserve) to support unlimited subdirectories within  
the specified parent directory. Then you could have

/foo/
	projects/
		repo1/
		repo2/
	users/
		john/
			repoA/
			repoB/
		jane/
			repofoo/
			repobar/

And you could point SVNParentPath in apache (or the -r option of  
svnserve) to the top /foo directory and it would let you access all  
of these. But alas, this feature does not yet exist. It has come up  
at least 3 times before that I can recall, so it may be time to make  
an enhancement request ticket for it.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by alexus <al...@gmail.com>.
that's sucks...


On Jan 27, 2008 4:00 AM, Ryan Schmidt <su...@ryandesign.com> wrote:
> On Jan 27, 2008, at 03:00, alexus wrote:
>
> > On Jan 25, 2008 3:12 PM, Ryan Schmidt wrote:
> >
> >> On Jan 25, 2008, at 14:08, alexus wrote:
> >>
> >>> is there a way to be able to run svnserver (as stand alone) not
> >>> through http(apache) and being able to access multiple repos at the
> >>> same time?
> >>>
> >>> svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
> >>>
> >>> in another words where repo1 and repo2 is two different repos
> >>
> >> Sure. Just start svnserve with something like this:
> >>
> >> svnserve -r /path/to/directory/containing/repositories
> >
> > you mean svnserve -r /dir1 /dir2 /dir3
> >
> > like that? because i have more the one directory that contains
> > different repos
>
> No, you can only specify a single parent directory. If you want
> multiple parent directories each of which contain multiple
> repositories, you'll have to run multiple instances of svnserve on
> different ports.
>
>



-- 
http://alexus.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by Ed Hillmann <ed...@gmail.com>.
On Jan 27, 2008 7:00 PM, Ryan Schmidt <su...@ryandesign.com> wrote:
> On Jan 27, 2008, at 03:00, alexus wrote:
>
> > On Jan 25, 2008 3:12 PM, Ryan Schmidt wrote:
> >
> >> On Jan 25, 2008, at 14:08, alexus wrote:
> >>
> >>> is there a way to be able to run svnserver (as stand alone) not
> >>> through http(apache) and being able to access multiple repos at the
> >>> same time?
> >>>
> >>> svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
> >>>
> >>> in another words where repo1 and repo2 is two different repos
> >>
> >> Sure. Just start svnserve with something like this:
> >>
> >> svnserve -r /path/to/directory/containing/repositories
> >
> > you mean svnserve -r /dir1 /dir2 /dir3
> >
> > like that? because i have more the one directory that contains
> > different repos
>
> No, you can only specify a single parent directory. If you want
> multiple parent directories each of which contain multiple
> repositories, you'll have to run multiple instances of svnserve on
> different ports.
>

If you're hosting on a *nix box, use symbolic links to navigate to the
repositories?

So, /home/svnRepositories can have symbolic links to all the various
SVN repositories you want to support.  Then use /home/svnRepositories
as the parent directory when starting svnserve

Dunno if there's an equivalent on Windows.  Perhaps a shortcut?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 27, 2008, at 03:00, alexus wrote:

> On Jan 25, 2008 3:12 PM, Ryan Schmidt wrote:
>
>> On Jan 25, 2008, at 14:08, alexus wrote:
>>
>>> is there a way to be able to run svnserver (as stand alone) not
>>> through http(apache) and being able to access multiple repos at the
>>> same time?
>>>
>>> svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
>>>
>>> in another words where repo1 and repo2 is two different repos
>>
>> Sure. Just start svnserve with something like this:
>>
>> svnserve -r /path/to/directory/containing/repositories
>
> you mean svnserve -r /dir1 /dir2 /dir3
>
> like that? because i have more the one directory that contains  
> different repos

No, you can only specify a single parent directory. If you want  
multiple parent directories each of which contain multiple  
repositories, you'll have to run multiple instances of svnserve on  
different ports.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by alexus <al...@gmail.com>.
you mean svnserve -r /dir1 /dir2 /dir3

like that? because i have more the one directory that contains different repos



On Jan 25, 2008 3:12 PM, Ryan Schmidt <su...@ryandesign.com> wrote:
>
> On Jan 25, 2008, at 14:08, alexus wrote:
>
> > is there a way to be able to run svnserver (as stand alone) not
> > through http(apache) and being able to access multiple repos at the
> > same time?
> >
> > svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
> >
> > in another words where repo1 and repo2 is two different repos
>
> Sure. Just start svnserve with something like this:
>
> svnserve -r /path/to/directory/containing/repositories
>
>
>
>



-- 
http://alexus.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn://

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 25, 2008, at 14:08, alexus wrote:

> is there a way to be able to run svnserver (as stand alone) not
> through http(apache) and being able to access multiple repos at the
> same time?
>
> svn://127.0.0.1/repo1 svn://127.0.0.1/repo2
>
> in another words where repo1 and repo2 is two different repos

Sure. Just start svnserve with something like this:

svnserve -r /path/to/directory/containing/repositories




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org