Hi,

Von: Peter Samuelson [mailto:pet...@p12n.org]
> [Julian Foad]
> > Do we really want a new subcommand "svn youngest" for this?
> >
> > We already have:
> >
> >   svnversion
> >     # youngest rev in a WC
> >
> >   svn info $URL | grep 'Revision:'
> >     # head revision of repo in which $URL exists
> 
> As Johan has already noted, it's slightly more complicated.  Let me
> add the wrinkle that you also need to make sure LC_MESSAGES is set to
> a known language, as "Revision:" is a localized string.  (My scripts
> tend to say things like:
> 
>     LC_ALL=C svn info $URL | awk '/Revision:/{print $2}'
> 
> You're correct, of course, that a whole subcommand just to get
> information that is already easily available, even if it does require
> awk and an environment variable, seems a bit much.

Don't forget that "svn info" and "svn status" have a "--xml" mode.

Their output is intended to be machine parseable and can be processed (for 
example using XSLT or xml-coreutils) in an locale-independent way.

Maybe you should have a look into this?


Best regards

Markus Schaber

CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH

Inspiring Automation Solutions

3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50

E-Mail: m.scha...@codesys.com | Web: http://www.codesys.com | CODESYS store: 
http://store.codesys.com
CODESYS forum: http://forum.codesys.com

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade 
register: Kempten HRB 6186 | Tax ID No.: DE 167014915

Reply via email to