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

2012-11-27 Thread Peter Samuelson
[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 wa

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

2012-11-27 Thread Julian Foad
Greg Stein wrote: > Eh? So it already has a separate/different semantic? No, it already had near-enough the same semantics: "allow property values that this client thinks are invalid".  This just extends it to mean "allow property values *and names* that ...". - Julian > Yay. > Bert Huijben

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

2012-11-27 Thread C. Michael Pilato
On 11/26/2012 06:38 PM, Peter Samuelson wrote: > > [Julian Foad] >> In general, setting *or* deleting an unknown prop name causes nothing >> significant to happen on *this* client, and may cause something >> (expected or unexpected) to happen on another client. > > I don't get why we would want '

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

2012-11-27 Thread Greg Stein
why I didn’t ask that specific question) > > Bert > > *From:* Greg Stein > *Sent:* ‎November‎ ‎27‎, ‎2012 ‎9‎:‎11‎ ‎AM > *To:* Julian Foad ,Branko Čibej > *CC:* Subversion Development > *Subject:* Re: [RFC] svn propset should require 'force' to set unknown > svn:

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

2012-11-27 Thread Bert Huijben
Čibej *CC:* Subversion Development *Subject:* Re: [RFC] svn propset should require 'force' to set unknown svn: propnames Brane has done some excellent work here. But it seems nobody has asked the question: why --force instead of (say) --allow-propname ? Haven't we already decided

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

2012-11-27 Thread Greg Stein
Brane has done some excellent work here. But it seems nobody has asked the question: why --force instead of (say) --allow-propname ? Haven't we already decided that --force is horribly overloaded, and horribly undefined? Thx, -g On Sun, Nov 18, 2012 at 9:50 PM, Julian Foad wrote: > 'svn propset

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

2012-11-26 Thread Julian Foad
Ben Reser wrote: > On Mon, Nov 26, 2012 at 3:38 PM, Peter Samuelson wrote: >> I don't get why we would want 'propdel --force' at all.  Either the >> "misspelled" property exists, or it doesn't. >> >> If the "misspelled" property exists, probably the user already >> noticed the typo, that's why t

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

2012-11-26 Thread Ben Reser
On Mon, Nov 26, 2012 at 3:38 PM, Peter Samuelson wrote: > I don't get why we would want 'propdel --force' at all. Either the > "misspelled" property exists, or it doesn't. > > If the "misspelled" property exists, probably the user already noticed > the typo, that's why they're deleting it! I see

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

2012-11-26 Thread Peter Samuelson
[Julian Foad] > In general, setting *or* deleting an unknown prop name causes nothing > significant to happen on *this* client, and may cause something > (expected or unexpected) to happen on another client. I don't get why we would want 'propdel --force' at all. Either the "misspelled" property

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

2012-11-26 Thread Branko Čibej
On 26.11.2012 21:33, Julian Foad wrote: > My conclusion is flagging 'propdel' is less important than flagging > 'propset' but still useful, but not enough to make a fuss about. > Oops, too late, I'va already made a fuss about it. Heh. Actually, adding the check to propdel takes all of two lines o

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

2012-11-26 Thread Julian Foad
Branko Čibej wrote: > On 25.11.2012 23:30, Julian Foad wrote: >> To answer the question I think you meant: requiring force for >> setting svn:mergeinfo is a separate issue and shouldn't necessarily >> work the same way or produce the same error message as the unknown >> propname check.  Personally,

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

2012-11-25 Thread Branko Čibej
On 25.11.2012 23:30, Julian Foad wrote: > Branko Čibej wrote: > >> The latest change takes account of property name similarity. So for example, >> >> svn propset svn:foobar . >> >> will emit an error but will not suggest an alternative spelling, whereas >> >> svn propset svn:ignores . >> >>

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

2012-11-25 Thread Julian Foad
Branko Čibej wrote: > The latest change takes account of property name similarity. So for example, > >     svn propset svn:foobar . > > will emit an error but will not suggest an alternative spelling, whereas > >     svn propset svn:ignores . > > will suggest two, svn:ignore and svn:global-ign

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

2012-11-24 Thread Branko Čibej
The latest change takes account of property name similarity. So for example, svn propset svn:foobar . will emit an error but will not suggest an alternative spelling, whereas svn propset svn:ignores . will suggest two, svn:ignore and svn:global-ignores. The only open question now, IMO,

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

2012-11-24 Thread Branko Čibej
On 24.11.2012 15:20, Daniel Shahaf wrote: > Branko Čibej wrote on Sat, Nov 24, 2012 at 13:38:39 +0100: >> On 24.11.2012 13:30, Daniel Shahaf wrote: >>> Branko Čibej wrote on Sat, Nov 24, 2012 at 12:33:01 +0100: I'm also considering requiring --force if one tries to use a revision property

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

2012-11-24 Thread Daniel Shahaf
Branko Čibej wrote on Sat, Nov 24, 2012 at 13:38:39 +0100: > On 24.11.2012 13:30, Daniel Shahaf wrote: > > Branko Čibej wrote on Sat, Nov 24, 2012 at 12:33:01 +0100: > >> I'm also considering requiring --force if one tries to use a revision > >> property name as a node property, and vice versa. > >

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

2012-11-24 Thread Branko Čibej
On 24.11.2012 13:30, Daniel Shahaf wrote: > Branko Čibej wrote on Sat, Nov 24, 2012 at 12:33:01 +0100: >> I'm also considering requiring --force if one tries to use a revision >> property name as a node property, and vice versa. >> > +0 > >> $ svn ps svn:barfoo x . >> svn: E195011: 'svn:barfoo' is

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

2012-11-24 Thread Daniel Shahaf
Branko Čibej wrote on Sat, Nov 24, 2012 at 12:33:01 +0100: > I'm also considering requiring --force if one tries to use a revision > property name as a node property, and vice versa. > +0 > $ svn ps svn:barfoo x . > svn: E195011: 'svn:barfoo' is not a valid svn: property name; did you mean > 's

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

2012-11-24 Thread Stefan Sperling
On Fri, Nov 23, 2012 at 11:22:44AM -0800, Ben Reser wrote: > On Fri, Nov 23, 2012 at 9:09 AM, Branko Čibej wrote: > > No. The check specifically looks for a three-letter prefix ending in a > > colon, and allows only one wrong character or transposition. It will > > flag svm: but not tsvn:. > > sv

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

2012-11-24 Thread Branko Čibej
On 23.11.2012 18:09, Branko Čibej wrote: > I agree that looking at the prefix is dicey, ... ... so I've tightened up the prefix matching so that --force is required only when: * the prefix is exactly 3 letters long (propname[3] == ':'); * and the first three letters differ in only one change

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

2012-11-23 Thread Ben Reser
On Fri, Nov 23, 2012 at 9:09 AM, Branko Čibej wrote: > No. The check specifically looks for a three-letter prefix ending in a > colon, and allows only one wrong character or transposition. It will > flag svm: but not tsvn:. svk would pop up for anyone still using (no idea if anyone does) SVK. >

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

2012-11-23 Thread Branko Čibej
On 23.11.2012 17:17, Mark Phippard wrote: > Personally, I think checking for mis-spellings in "svn:" goes too far. > For example, do these checks interfere with setting any of the tsvn: > properties? No. The check specifically looks for a three-letter prefix ending in a colon, and allows only one

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

2012-11-23 Thread Julian Foad
Branko Čibej wrote: > On 23.11.2012 15:35, Julian Foad wrote: >> In file included from subversion/libsvn_delta/compat.c:36:0: >> ./subversion/svn_private_config.h:236:7: > "SVN_QSORT_R_NORMAL_ARG_ORDER" is not defined [...] > > Julian, we've had this discussion before. I'm not going to change

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

2012-11-23 Thread Mark Phippard
On Fri, Nov 23, 2012 at 5:43 AM, Branko Čibej wrote: > On 19.11.2012 03:50, Julian Foad wrote: >> Proposal: >> >> For any unrecognized property name in the 'svn:' name space, these would >> bail out with an error unless '--force' is given: >> >> svn pset svn:foo >> svn pedit svn:foo >> >> and

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

2012-11-23 Thread Branko Čibej
On 23.11.2012 16:31, Daniel Shahaf wrote: > Branko Čibej wrote on Fri, Nov 23, 2012 at 15:59:16 +0100: >> On 23.11.2012 15:35, Julian Foad wrote: >>> In file included from subversion/libsvn_delta/compat.c:36:0: >>> ./subversion/svn_private_config.h:236:7: "SVN_QSORT_R_NORMAL_ARG_ORDER" is >>> not

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

2012-11-23 Thread Daniel Shahaf
Daniel Shahaf wrote on Fri, Nov 23, 2012 at 17:31:05 +0200: > Branko Čibej wrote on Fri, Nov 23, 2012 at 15:59:16 +0100: > > On 23.11.2012 15:35, Julian Foad wrote: > > > In file included from subversion/libsvn_delta/compat.c:36:0: > > > ./subversion/svn_private_config.h:236:7: "SVN_QSORT_R_NORMAL_

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

2012-11-23 Thread Daniel Shahaf
Branko Čibej wrote on Fri, Nov 23, 2012 at 15:59:16 +0100: > On 23.11.2012 15:35, Julian Foad wrote: > > In file included from subversion/libsvn_delta/compat.c:36:0: > > ./subversion/svn_private_config.h:236:7: "SVN_QSORT_R_NORMAL_ARG_ORDER" is > > not defined > > -- > > In file included from subv

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

2012-11-23 Thread Branko Čibej
On 23.11.2012 15:35, Julian Foad wrote: > In file included from subversion/libsvn_delta/compat.c:36:0: > ./subversion/svn_private_config.h:236:7: "SVN_QSORT_R_NORMAL_ARG_ORDER" is > not defined > -- > In file included from subversion/libsvn_delta/svndiff.c:31:0: > ./subversion/svn_private_config.h

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

2012-11-23 Thread Julian Foad
In file included from subversion/libsvn_delta/compat.c:36:0: ./subversion/svn_private_config.h:236:7: "SVN_QSORT_R_NORMAL_ARG_ORDER" is not defined -- In file included from subversion/libsvn_delta/svndiff.c:31:0: ./subversion/svn_private_config.h:236:7: "SVN_QSORT_R_NORMAL_ARG_ORDER" is not defin

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

2012-11-23 Thread Branko Čibej
On 23.11.2012 12:58, Daniel Shahaf wrote: > Branko Čibej wrote on Fri, Nov 23, 2012 at 11:43:29 +0100: >> $ svn ps svm:ignore x . >> svn: E195011: 'svm:ignore' is not a valid svn: property name; did you mean >> 'svn:ignore'? >> (Use --force if you're sure about 'svm:ignore'.) > > "To set the 'svm:

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

2012-11-23 Thread Daniel Shahaf
Branko Čibej wrote on Fri, Nov 23, 2012 at 11:43:29 +0100: > On 19.11.2012 03:50, Julian Foad wrote: > > Proposal: > > > > For any unrecognized property name in the 'svn:' name space, these would > > bail out with an error unless '--force' is given: > > > > svn pset svn:foo > > svn pedit svn:f

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

2012-11-23 Thread Branko Čibej
On 19.11.2012 03:50, Julian Foad wrote: > Proposal: > > For any unrecognized property name in the 'svn:' name space, these would bail > out with an error unless '--force' is given: > > svn pset svn:foo > svn pedit svn:foo > > and all other subcommands where properties are handled would continu

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

2012-11-19 Thread C. Michael Pilato
On 11/19/2012 09:13 AM, Daniel Shahaf wrote: > Another thing we could do is warn when unrecognised options are found in > the config file (~/.subversion/*) or in the --config-option command-line > option. > > This would be an independent improvement, i.e., it neither blocks nor > is blocked by the

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

2012-11-19 Thread Daniel Shahaf
Julian Foad wrote on Mon, Nov 19, 2012 at 14:08:34 +: > C. Michael Pilato wrote: > > > On 11/18/2012 10:56 PM, Daniel Shahaf wrote: > >> Julian Foad wrote on Mon, Nov 19, 2012 at 02:50:46 +: > >>> Thoughts, objections? > >> > >> Another related trap is setting a revprop as a nodeprop,

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

2012-11-19 Thread Julian Foad
C. Michael Pilato wrote: > On 11/18/2012 10:56 PM, Daniel Shahaf wrote: >> Julian Foad wrote on Mon, Nov 19, 2012 at 02:50:46 +: >>> Thoughts, objections? >> >> Another related trap is setting a revprop as a nodeprop, or vice-versa: >>     svn commit --with-revprop=svn:eol-style=native -m

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

2012-11-19 Thread C. Michael Pilato
On 11/18/2012 10:56 PM, Daniel Shahaf wrote: > Julian Foad wrote on Mon, Nov 19, 2012 at 02:50:46 +: >> Thoughts, objections? >> > > Another related trap is setting a revprop as a nodeprop, or vice-versa: > svn commit --with-revprop=svn:eol-style=native -mm foo.c > svn propset svn:log

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

2012-11-18 Thread Paul Burba
On Sun, Nov 18, 2012 at 9:50 PM, Julian Foad wrote: > 'svn propset' lets us create any property name 'svn:foo', with good reason: > we want old clients to be able to set and edit properties that only the newer > clients know about. However, there is a pitfall for unwary users: it's east > to m

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

2012-11-18 Thread Daniel Shahaf
Julian Foad wrote on Mon, Nov 19, 2012 at 02:50:46 +: > Thoughts, objections? > Another related trap is setting a revprop as a nodeprop, or vice-versa: svn commit --with-revprop=svn:eol-style=native -mm foo.c svn propset svn:log x foo.c You might want to require --force for these too

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

2012-11-18 Thread Julian Foad
'svn propset' lets us create any property name 'svn:foo', with good reason: we want old clients to be able to set and edit properties that only the newer clients know about.  However, there is a pitfall for unwary users: it's east to mis-spell a prop name and not notice.  For example:   svn:ign