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

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

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2005-11-03 22:31:34 CET

On 11/3/05, Doyle, Patrick <WPD@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
Received on Thu Nov 3 22:38:50 2005

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.