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

Re: [RFC] svn propset should require 'force' to set unknown svn: propnames

From: Peter Samuelson <peter_at_p12n.org>
Date: Tue, 27 Nov 2012 14:25:49 -0600

[Peter Samuelson]
> If the "misspelled" property exists, probably the user already noticed
> the typo, that's why they're deleting it! I see no need for --force
> here.
>
> If the "misspelled" property does not exist, I think the warning that
> the property does not exist is just as good as a warning that they
> misspelled it or forgot to use --force.

There is an additional case. If you _expect_ some warnings that a
property does not exist (which you should expect a lot of, if you use
'svn propdel -R'), and indeed the property does not exist, perhaps it
would be helpful to alert the user of a possible misspelling.

But that's still not a --force flag, just an additional warning line
after "Attempting to delete nonexistent property 'svm:eol-style' on...."
But in the -R case, those "nonexistent property" lines will overwhelm
the output, so if we wanted to do the additional spell-check warning,
we'd have to make sure it appears last, and probably only if the
propdel was not able to delete anything. (I.e., not only if there was
at least one "nonexistent property" warning.)

Peter
Received on 2012-11-27 21:26:27 CET

This is an archived mail posted to the Subversion Dev mailing list.