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