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

Revision defaults to peg-rev, inconsistently [was: svn bug]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-11-25 02:09:24 CET

(This looks like it's getting interesting so I'm giving it an interesting
subject line.)

Greg Hudson wrote:
> On Thu, 2005-11-24 at 20:32 +0000, Malcolm Rowe wrote:
>
>>I always figured that 'path@rev' just allowed the user to locate a
>>particular line-of-history, and that the -rREV option then chose the
>>revision to perform the operation on. Given that the default revision
>>for 'cat' is HEAD, I'm surprised that it behaves this way - it seems to
>>conflate the two concepts.
>
>
> The "svn cat" rules for URLs:
> * The default for the peg rev is HEAD.
> * The default for the operative rev is the peg rev.
>
> Perhaps this is conflation, but it's a whole lot more convenient and
> intuitive to be able to say "svn cat foo@10" than to say "svn cat -r 10
> foo@10".
>
>
>>We should be consistent though. Apart from 'cat', which of the commands
>>that accept a peg-revision default to -rPEGREV if no revision argument
>>is provided (and which don't)?
>
>
> Operative rev defaults to peg rev:
> cat
> export
> info
> ls
> propget
> proplist
>
> Operative rev defaults to HEAD:
> blame
> co (bug: @pegrev not trimmed off default wc pathname)
> diff (second operative rev defaults to HEAD)
>
> Does not appear to support peg revs even though it could:
> cp
> log
> switch
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 25 02:09:59 2005

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.