Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get svn remote repository URL?

Tags:

svn

I have an svn working copy on my local system. I want to get the remote repository URL. Is there some command for doing this?

like image 626
mlzboy Avatar asked Feb 03 '12 12:02

mlzboy


People also ask

How do I find my svn repository path?

http:// or https:// This is svn over http or https. You need to find the virtual host in your apache configuration and look for a <Location> section that matches your url path and look for a SVNPath or SVNParentPath config line. This will tell you the location of your subversion repository.

What is svn URL?

The url would then be: svn://<your_ip>/<repository_name> As opposed to an http or file protocol URL for apache and local filesystem based repositories. Read this page for details on how to set up svnserve it on Windows: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup-svnserve.html.


2 Answers

Try:

svn info . 

This should give some information about the current working copy, including the remote URL.

From the manual, an example output is:

$ svn info foo.c   Path: foo.c   Name: foo.c   URL: http://svn.red-bean.com/repos/test/foo.c   Repository Root: http://svn.red-bean.com/repos/test   Repository UUID: 5e7d134a-54fb-0310-bd04-b611643e5c25   Revision: 4417   Node Kind: file   Schedule: normal   Last Changed Author: sally   Last Changed Rev: 20   Last Changed Date: 2003-01-13 16:43:13 -0600 (Mon, 13 Jan 2003)   Text Last Updated: 2003-01-16 21:18:16 -0600 (Thu, 16 Jan 2003)   Properties Last Updated: 2003-01-13 21:50:19 -0600 (Mon, 13 Jan 2003)   Checksum: d6aeb60b0662ccceb6bce4bac344cb66   
like image 146
Grhm Avatar answered Sep 19 '22 07:09

Grhm


Try this:

svn info | grep URL | sed  's/URL: //g' 
like image 28
Paker Avatar answered Sep 21 '22 07:09

Paker