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

Re: Silly Mozilla question.

From: Paul Lussier <pll_at_lanminds.com>
Date: 2003-03-14 17:12:07 CET

In a message dated: Fri, 14 Mar 2003 11:01:49 EST
"Leeuw van der, Tim" said:

>Does it work with:
>
>$ svn propset svn:mime-type text/html "*.html"
>
>?
>
>In other words, will svn do the filename wildcard-matching itself? That way
>it will automatically put the property on any new file (hopefully, and
>hopefully also on html files in sub-directories).

That would be ideal, however, now you're trying to resurect the horse
which was beaten to death last week over file globbing, and whether
the shell or svn should do it (this was the svn:ignore discussion :)

>If I do it the way it is in the original post, the shell will expand
>wildcards and it will only put the property on all html files which
>currently are in the current directory.

I think the way to handle this would be to have the ability to set a
directory-level propset and optionally to have that recursive.
Similar in manner to how setting the sgid bit on UNIX directories
recursively maitains group/group permissions on all subsequently
created files/directories. Subversion could allow for this by
allowing for something like an svn:dir property which could have
multiple values. Something like:

        $ svn propset svn:dir 'R, mime-type=text/html' .

would indicate that the current directory would have all contents
automatically set with a mime-type of text/html, and the 'R'
indicates that svn should make this a recursive property on this
hierarchy.

Of course, this is simply me thinking with my fingers tapping on a
keyboard. Actual implementation is left as an exercise to those
who know the code and can actually program their way out of a wet
paper bag :)

-- 
Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE
	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.
	 If you're not having fun, you're not doing it right!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 14 17:13:22 2003

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.