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

Re: [wc-propcaching]: Cache existence of certain properties

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-11-11 19:39:08 CET

On Fri, 2005-11-11 at 10:26 -0800, Jim Blandy wrote:
> What happens if a property name contains a comma or a space?

Can't, we don't allow them, for good reason

dberlin@linux:~/svn-propcaching> svn propset "foo bar" 5 .
svn: Bad property name: 'foo bar'
dberlin@linux:~/svn-propcaching> svn propset "foo|bar" 5 .
svn: Bad property name: 'foo|bar'
dberlin@linux:~/svn-propcaching> svn propset "foo,bar" 5 .
svn: Bad property name: 'foo,bar'

They aren't allow in XML (which is what the entries file is stored in),
and XML does not allow tag names or attribute names to contain
whitespace (http://www.w3.org/TR/REC-xml/#NT-NameChar)

So not using a single string really doesn't help you here, even if *we
did relax that restriction on property names* because you can't have
random property-names as XML tags or attribute names anyway, which would
be the next most obvious way to do it.

FYI: At Zhakov's suggestion, the separator being used is actually now
"|", not comma or space, since it looks prettier :).

--Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 11 19:39:46 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.