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

Re: Property values for boolean properties.

From: Michael Haggerty <mhagger_at_alum.mit.edu>
Date: 2007-06-18 12:54:35 CEST

Karl Fogel wrote:
> Subversion has two versioned properties interpreted as booleans --
> 'svn:executable' and 'svn:needs-lock'. (I'm ignoring 'svn:special'
> here, since users don't touch it directly.)
>
> Their property values are always normalized to "*", no matter what
> value you actually gave. Thus:
>
> [...]
>
> But the problem is that the word "off" doesn't turn the property off;
> instead, "off" turns it on too! You have to use 'svn propdel' to turn
> the property off.

In general, it's nice to have an explicit value meaning "false".
Otherwise, one needs to learn two commands to toggle between
conceptually very similar options:

    svn propset svn:executable true filename

vs.

    svn propdel svn:executable filename

It would be much nice to be able to type

    svn propset svn:executable false filename

The same applies to svn:eol-style: there is no option meaning "binary".
 So these conceptually very similar operations require commands that
don't look alike:

    svn propset svn:eol-style native file.ext

vs.

    svn propdel svn:eol-style file.ext

It would be nice if the following were supported:

    svn propset svn:eol-style binary file.ext

This is also awkward for cvs2svn's --auto-props feature, where you'd
like to be able to say "treat this file as binary, dammit, regardless of
what any later default rules say".

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 18 12:54:45 2007

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