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

Re: open-ended ranges?

From: Peter Davis <peter_at_pdavis.cx>
Date: 2002-08-04 09:56:51 CEST

On Sunday 04 August 2002 00:15, you wrote:
> > svn log -r 10:HEAD
>
> Unlike CVS, Subversion tags and branches are not in the same namespace
> as revisions.

Preaching to the choir :)

> Revisions are just identified by integers, so why bother using the
> special name 'HEAD' when '10:' is equally clear? As far as I know,
> 'HEAD' is not a magic word anywhere in Subversion.

Yes it is magic. PREV is also magic (but relative to the working-copy's
revision).

Maybe '10:' would be clearer, and maybe it could do all kinds of
integer-related stuff, like '10:-N' in general (c|w|s)ould be N revs prior to
HEAD. But HEAD works right now.

$ svn log -r 2872: http://svn.collab.net/repos/svn

svn_error: #21124 : <Client error in parsing arguments>
  Syntax error in revision argument "2872:"

$ svn log -r 2872:ABC http://svn.collab.net/repos/svn

svn_error: #21124 : <Client error in parsing arguments>
  Syntax error in revision argument "2872:ABC"

$ svn log -r 2872:HEAD http://svn.collab.net/repos/svn
------------------------------------------------------------------------
rev 2872: david | 2002-08-03 10:46:08 -0700 (Sat, 03 Aug 2002) | 4 lines

 * ./INSTALL : Directory re-organization.
... [other log messages] ...

-- 
Peter Davis
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 4 09:57:31 2002

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.