[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: Max Bowsher <maxb_at_ukf.net>
Date: 2004-07-05 15:46:19 CEST

Klaus Rennecke wrote:
> 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?

Sounds like an extremely good idea to me. I was just recently wishing for:

svn log -r BASE+1:HEAD

i.e. show all commits after my last update, but do not show the log for the BASE revision itself.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jul 5 16:00:57 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.