[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 21:01:12 CET

In a message dated: Fri, 14 Mar 2003 10:14:31 PST
"Jack Repenning" said:

>Here, I think the idea is that the glob would not be interpreted at the
>time the "*" was typed (the time of propset), and hence the shell would
>have no chance to do what's proposed.

Unless you're proposing setting the actual property to '*.html'
similar to the way you can set svn:ignore to '*.o' for example, I
don't see how you'll prevent the shell from completing the glob short
of requiring the user to quote the glob.

This command:

        svn propset svn:mime-type text/html "*.html"

would work the way you describe, but this:

        svn propset svn:mime-type text/html *.html

would not.

Requiring the use of quotes like this I think may make some very
unhappy. At the very least, it's going to lead to some confusion for
those who forget to apply the quotes and can't understand why things
aren't working correctly.

But, I think by changing svn:mime-type to behave similar to
svn:ignore might not be a bad thing. That way you could easily do
something like:

        $ svn proplist svn:mime-type .
        text/html: *.html, *.htm
        image/jpeg: *.jpg *.jpeg
        image/gif: *.gif
        application/ms-powerpoint: *.ppt, *.pot, *.ppa, *.pps, *.pwz

etc. In short, making the svn:mime-type propert actually contain a
.mime.types file for each directory or hierarchy.

> Rather, I think the idea is that the "*" itself would be stored off at
>propset time; sometime later (e.g., at some subsequent "svn add" moment),
>the *-stored-at-propset would once again be consulted, and might cause
>ignoring some of the args (or printing of warnings, or requiring of
>--force, depending on which fork the discussion takes next).

Yeah, that makes sense, and it seems to co-incide with what I was
just saying. I think :)

-- 
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 21:03:02 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.