[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: Leeuw van der, Tim <tim.leeuwvander_at_nl.unisys.com>
Date: 2003-03-14 17:33:31 CET

I skipped that thread entirely.... I don't want to open up fresh wounds
again ;-)

I would want svn to do the globbing and apply it to all newly created files
as well and possibly even recursively but I don't want mime-type to be a
property of all files in a directory. I want to be able to mix .jsp, .html,
.png, .txt, etc :-)

mvgr,

--Tim

-----Original Message-----
From: Paul Lussier [mailto:pll@lanminds.com]
Sent: vrijdag 14 maart 2003 17:12
To: Leeuw van der, Tim
Cc: dev@subversion.tigris.org
Subject: Re: Silly Mozilla question.

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:34:27 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.