You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Doyle, Patrick" <WP...@dtccom.com> on 2005/11/03 21:23:02 UTC

How can I determine the base URL of a repository?

Is there some mechanism I can use to determine the URL of a repository from
within the working copy?

I can use:

$ svn info | grep URL

but that gives me the repository _plus_ the name of the directory within the
repository, e.g.

URL: file:///home/wpd/testsvn/trunk/dir1/dir2

I would like to get just the file:///home/wpd/testsvn part.

Any thoughts?

--wpd

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

Re: How can I determine the base URL of a repository?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 11/3/05, Scott Palmer <sc...@2connected.org> wrote:

> > Try 'svn info | grep Repository', assuming you've got a recent enough
> > version of svn it should be there.
>
> That just gets the UUID, not a URL.  Using svn 1.2.3.


On Subversion 1.3.x it'll get you the repository url in addition to
the repository uuid.

-garrett

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


Re: How can I determine the base URL of a repository?

Posted by Scott Palmer <sc...@2connected.org>.
On 3-Nov-05, at 4:31 PM, Garrett Rooney wrote:

> On 11/3/05, Doyle, Patrick <WP...@dtccom.com> wrote:
>> Is there some mechanism I can use to determine the URL of a  
>> repository from
>> within the working copy?
>>
>> I can use:
>>
>> $ svn info | grep URL
>>
>> but that gives me the repository _plus_ the name of the directory  
>> within the
>> repository, e.g.
>>
>> URL: file:///home/wpd/testsvn/trunk/dir1/dir2
>>
>> I would like to get just the file:///home/wpd/testsvn part.
>
> Try 'svn info | grep Repository', assuming you've got a recent enough
> version of svn it should be there.

That just gets the UUID, not a URL.  Using svn 1.2.3.

Scott

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

Re: How can I determine the base URL of a repository?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 11/3/05, Doyle, Patrick <WP...@dtccom.com> wrote:
> Is there some mechanism I can use to determine the URL of a repository from
> within the working copy?
>
> I can use:
>
> $ svn info | grep URL
>
> but that gives me the repository _plus_ the name of the directory within the
> repository, e.g.
>
> URL: file:///home/wpd/testsvn/trunk/dir1/dir2
>
> I would like to get just the file:///home/wpd/testsvn part.

Try 'svn info | grep Repository', assuming you've got a recent enough
version of svn it should be there.

-garrett

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