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

Re: svn log questions

From: Benjamin Pflugmann <benjamin-svn-usr_at_pflugmann.de>
Date: 2004-12-11 02:20:18 CET

On Fri 2004-12-10 at 08:46:52 +0000, you wrote
> >I think what you want is 'svn log file --limit 1'. It will stop after
> >showing you one log message, and that's guaranteed to be the most recent
> >change on a file.
>
> What I really wanted was the second entry in 'svn log file --limit 2'
> without having to search for the second entry (i.e. what I thought
> -rPREV would do)

I didn't see anyone else mention it, so I'll do. You can get the
behaviour you want by excluding the first revision. And you already
know how to get there, by -rPREV. So I think the following should do
what you asked for:

  svn log -r PREV:1 --limit 1 file

(That's just a untested projection, because my version of svn doesn't
support --limit).

Bye,

        Benjamin.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 11 02:23:28 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.