[haiku-development] Re: How do you list the svn revisions of files?

  • From: Truls Becken <truls.becken@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 15 Jul 2009 21:39:40 +0200

On Wed, Jul 15, 2009 at 20:51, Maxime Simon wrote:

> If your svn application is localized then you'll have to change "Last
> Changed Rev" to the equivalent in your language ( "Révision de la
> dernière modification" for example in french ).

A better approach is to force the locale back to the standard with
something like;

LC_ALL=C svn info file | sed '/Last Changed Rev/!d;s/[^0-9]*//'

If this is from a real program rather than a simple script, then it's
probably better to parse svn's output in said program directly,
possibly using the --xml format.

-Truls

Other related posts: