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

  • From: scott mc <scottmc2@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 15 Jul 2009 10:37:32 -0700

On Wed, Jul 15, 2009 at 10:35 AM, Maxime Simon<simon.maxime@xxxxxxxxx> wrote:
>> Is there a way to quickly list only the revision of a file in SVN? Best in
>> a list for all files in a directory.
>
> Using `svn info file' you'll get informations for a given file.
> In the output you could find the commit revision of it.
> It may be easier if using the `--xml' option, then you can parse
> the output and find the commit revision of the file.
> 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.)
> I don't know how to get only the revision of a file, but you can
> play with libxml2 then. :)
> Regards,
> --
> Maxime
>

try:
svn help ls

svn ls -v sort of gives you want you are looking for.
-scottmc

Other related posts: