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

AW: --strict vs --no-newline

From: Markus Schaber <m.schaber_at_codesys.com>
Date: Thu, 19 Jun 2014 09:16:29 +0000


Von: Peter Samuelson [mailto:peters_at_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.schaber@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
Received on 2014-06-19 11:17:15 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.