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

Re: Revision keywords and arithmetics

From: Madan U S <madan_at_collab.net>
Date: 2006-01-30 12:20:18 CET

Karl Auer <kauer@biplane.com.au> writes:

>> > > > > How about enhancing revision (-r) option, to do arithmetical operations
>> > > > > (Add & Sub) on revision keywords like "svn log URL -r HEAD-100:HEAD".
>> > > > Why?
>> Otherwise user had to do atlest 3 operations
>> 1. Get respective (HEAD, BASE...) revision using 'svn info' command
>> 2. calculate the target revision
>> 3. call svn command with this target revision
> I don't understand why anyone would want to *calculate* a target revision. Most people want to know exactly what revisons are involved in the operations they carry out. They don't just want "the last 20" (or "the first 37" or whatever).
> It seems most unlikely to me that a user might not know what revision number is needed, but *did* know how far away it was numerically from (say) HEAD.

Let me take a stab at what Alex means here...

Given the job of viewing a file's history, if I wanted to only view the last few log entries, instead of the available 10145 (which is HEAD), I could either use...

svn log filename | less


svn log -r HEAD:HEAD-100

   The second of which is cleaner.

But what really intrigues me is HEAD+100 ... just imagine the possibilities of checking out HEAD+100!!! ;)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 30 11:54:47 2006

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.