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

proposal for sanity check at propset time

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-05-21 19:49:38 CEST

We have some properties in the "svn:" namespace that are only
meaningful for files, and some that are only meaningful for dirs:

     svn:mime-type ==> files
     svn:ignore ==> directories
     svn:eol-style ==> files
     svn:keywords ==> files
     svn:executable ==> files (*)
     svn:charset ==> files
     svn:externals ==> directories

(* Yes, Unix overloads "executable" to have a meaning for directories,
but that's not what we document the executable property to mean, so I
don't think Subversion should support that overloading.)

Since Subversion manages the "svn:" property namespace anyway, maybe
we should protect against setting such properties on the wrong kind of
target? Of course, user can pass --force to override:

   $ svn propset svn:mime-type "text/plain" .
   Error: "svn:mime-type" is for files, blah blah, use --force to override
   $ svn propset --force svn:mime-type "text/plain" .
   property `svn:mime-type set on '.'
   $

Thoughts? Objections?

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 21 19:51:58 2002

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