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

Peter

Reply via email to