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

Re: Special revision ids: HEAD, BASE, etc. ... but Head, head, CHANGED, FIRST?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-09-21 14:38:48 CEST

Sander Striker wrote:
>>From: Julian Foad
...
>>subversion/libsvn_subr/opt.c (revision_from_word) implements the following familiar words:
>>
>> HEAD
>> BASE
>> COMMITTED
>> PREV
>>
>>but also these:
...
>> FIRST: a synonym for 0 (number zero)
>>
>>Do we really need that? I can imagine a meaning of "FIRST" that would be more useful: "The first revision in which the
>>item existed."
>
> Hmmm, what does usage of FIRST do with the various commands nowadays?
> What is the expected output? Is that intuitive?

It is translated into "0" (type "number") - not its own special type. So it does exactly what it would have done if you had type "0" instead. It's not what I would call "intuitive". For example:

~/src/subversion> svn log -rFIRST HACKING
svn: HTTP Path Not Found
svn: REPORT request failed on '/repos/svn/!svn/bc/0/trunk/HACKING'
svn: '/repos/svn/!svn/bc/0/trunk/HACKING' path not found

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 21 14:38:28 2003

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.