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

Most recent log message?

From: Campbell, Matthew A <Matthew.Campbell_at_Relizon.com>
Date: 2004-07-14 18:25:46 CEST

I strongly suspect I'm being stupid, dense, or both - but I cannot figure
this out. I've gone through the online version of the book and not found
and answer. I suspect that this is a (v)FAQ, but searching the archive at
http://www.contactor.se/~dast/svn/ didn't help (I had difficulty
constructing a useful search query).

Is there a way using command-line SVN to retrieve *only* the most recent log
info for a given URL? (I'm pretty sure that for a working copy, 'svn log -q
-rBASE' would work, however the approach I need should be able to handle
either case.) 'svn log -q -rHEAD URL' only works if you have the happy
coincidence where the URL was actually the subject of the last checkin.
I've tried being clever with using dates as revisons (specifying future
dates) but there seem to be some circumstances where this works, and others
where it does not.

Right now I am accomplishing the same end result using pipelines to filter
out a total log dump (which could be potentially very large on a *very* busy
project), but it seems to me this kind of situation would be fairly common,
and supported by a revision keyword - since HEAD doesn't work, perhaps
something like "youngest"...

This is the "solution" I'm currently using to get by...
svn log -q ${URL} | grep -v ^- | head -1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 14 18:31:17 2004

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