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

Re: Extracting URL from WC

From: Mark Reibert <svn_at_reibert.com>
Date: 2007-12-18 06:26:09 CET

On Mon, 2007-12-17 at 17:12 -0800, Kenneth Porter wrote:
> I want to report for a given application build what Subversion repo URL
> (eg. trunk or which branch) the source was drawn from. I expect I could
> parse it out of "svn info" output, but I'm wondering if there's a shortcut
> for this. Or perhaps a script or utility that extracts this information.

I can't think of anything much shorter than:

svn info | awk '/^URL:/ { print $2 }'

-- 
----------------------
Mark S. Reibert, Ph.D.
svn@reibert.com
----------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 18 06:26:31 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.