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

Re: efficient "svn log" usage?

From: Stefanus Du Toit <sjdutoit_at_cgl.uwaterloo.ca>
Date: 2004-07-03 22:04:30 CEST

On Sat, Jul 03, 2004 at 12:36:24PM -0700, Robert Kleemann wrote:
> cvsdate file-arg
> Runs "cvs log" on the specified file. Parses the log for the most
> recent change date and returns that date.
>
> cvsnewest file-list
> Runs cvsdate for each file in the file list and returns the most
> recent of all those dates.

If I understand correctly, due to the behaviour of svn log, the
following will give you what you want:

svn log [file list] | head -2

Thus you don't have to fetch the log separately for each file and sort
it yourself, since this is equivalent to what svn log does (more or
less).

Whether this is the quickest way to find out the most recent date for a
set of files, I don't know. svn info comes to mind, as does svn ls
--verbose.

-- 
Stefanus Du Toit <sjdutoit@cgl.uwaterloo.ca>
  Computer Graphics Lab
  School of Computer Science
  University of Waterloo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jul 3 22:08:07 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.