[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: Paul Koning <pkoning_at_equallogic.com>
Date: 2006-01-30 15:49:48 CET

>>>>> "Karl" == 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

 Karl> I don't understand why anyone would want to *calculate* a
 Karl> target revision. Most people want to know exactly what revisons
 Karl> are involved in the operations they carry out. They don't just
 Karl> want "the last 20" (or "the first 37" or whatever).

Agreed. HEAD is useful, and I think I may have used PREV once (though
certainly not more than once).

I've gone out of my way to teach my colleagues "do NOT try to assign
any meaning to Subversion revision numbers, because you'll just get
confused". I would think that attempts to do arithmetic on revision
numbers is "trying to assign meaning" to them. So I would actually
think this is a bad idea, rather than just an uninteresting idea.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 30 15:56:26 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.