[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:07:09 +0200

On Wed, Jul 15, 2009 at 19:35, Maxime Simon wrote:

> If you add the `--depth=files' option you will get the informations
> for all the files in the folder. (it also works with a single file.)

Thanks for this info. For completeness, here's a sed script that makes
sense out of this multi-file output;

svn info --depth=files PATH-TO-FILE-OR-DIRECTORY | sed -n
'/^Path:/{s/[^:]*: //;h;:a;n;/^Last Changed Rev:/!b a;s/[^:]*:
//;G;s/\n/ /;p}'

Using info rather than list has the advantage of being much faster as
it finds the info in the working copy. SVN list fetches data from the
repository.

-Truls

Other related posts: