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

Re: --strict vs --no-newline

From: Peter Samuelson <peters_at_p12n.org>
Date: Wed, 18 Jun 2014 22:42:29 -0500

[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.

Received on 2014-06-19 05:43:07 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.