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

Re: [PATCH] 'last N changes' mode for svn log

From: Klaus Rennecke <kre_at_tigris.org>
Date: 2004-07-05 13:48:55 CEST

Garrett Rooney wrote:

>So I've been toying around with changes to 'svn log' so that you can
>do something like:
>
>$ svn log -r HEAD:-10 http://svn.collab.net/repos/svn/trunk
>
>And get the last 10 changes on the trunk. I find myself running 'svn
>log' with no revision specified an awful lot, and it seems awfully
>wasteful since I usually only want the last few revisions anyway.
>[...]
>
>

That's a very good idea. But I think that it is more limited than need
be. If you define it as

    L[{+|-}O][:R[{+|-}O]]

where O is the offset that must be numeric, you can use the offset in
all positions. An added bonus is that the right side becomes context
free again. PREV would be just an alias for COMMITTED-1. And
{2002-11-28}+1 would give you the first commit after midnight morning on
that day.

And I feel that HEAD:HEAD-10 is more descriptive as well.

Caveat: This would disallow using +- in symbolic revision identifiers.
But I don't see any harm in that.

What do you think?

/Klaus

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 5 13:49:59 2004

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

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