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

Re: Symbolic links and Samba

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: Thu, 21 Feb 2008 14:36:23 -0800

"David Glasser" <glasser_at_davidglasser.net> writes:

> I find "-r" to be a little confusing here. It's different from most
> other svn commands, where "-r" really means "select r42 instead of the
> default revision (eg HEAD)".

This is selecting, in a way. I know what you're getting at, but
I'm not sure it's a confusion non-svn-hackers will get or even
care about. "I'm specifying a revision, aren't I?" I don't
know; I'm not going to cry if we go with --base-rev ;->.

> Should it be OK to type "svn propset PROP VALUE URL -rHEAD"? If you
> do that you lose all the protection of the argument, but I can totally
> imagine that people will cargo-cultishly copy and paste "-rHEAD" as
> "the way" to change a property on an URL without understanding the
> possibility of a race condition.

Sure, but the propset command can see that you said HEAD, right?
Doesn't it have a structure for the -r optarg, and it turns that
into a number on its own (I think svn_client does, actually). So
it can reject all but revision numbers. This is no more
inconsistent than some commands taking two revision numbers and
others taking only one.

-- 
Eric Gillespie <*> epg_at_pretzelnet.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-02-21 23:36:31 CET

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.