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

Re: Processing localized svn info

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-17 12:20:23 CEST

On May 17, 2006, at 11:00, Frederic Duarte wrote:

> Here is my problem :
> I need to process some informations displayed by "svn info".
> 1) the plain text displayed by svn info is not so easy to parse

Oh, it's not that bad: split on the first ": " and you've got your
set of name/value pairs.

If that's not enough, the --xml switch gives you XML output which you
can parse or transform with XSLT.

> 2) the svn client is automatically localized -> the plain text
> cannot be parsed

The first line of your script can set the locale to anything you
like, for example:

LANG=en_US

> 3) the text displayed by svn info changes depending on the TARGET
> (ex: the repository root is not displayed when TARGET is a working
> copy)

But the repository root is shown, even for working copies. Are you
using the latest version of Subversion, 1.3.1?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 17 12:25:12 2006

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.