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

svn:mime-type and detecting mergeability

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: 2002-08-22 18:08:14 CEST

I personally have no interest in doing this, but it occurs to me
that people might want to serve a web site directly out of a
Subversion repository. That's fine, just set the svn:mime-type
on all the files. But, what if your target audience is an
internal network running Mozilla exclusively and you use features
of XHTML not backwards-compliant with HTML? This means you must
use the unfortunately named application/xhtml+xml media type.
And that means Subversion (rightfully so, IMHO) thinks the file
is not text.

The obvious work-around is simply not to do it that way. Stop
being lazy and write Makefiles to publish from a wc to your web
site. A co-worker proposed a better idea, though. Make the list
of media types which are to be considered text configurable.

He thinks this should be a repository option (which places it
post-1.0, waiting on the mechanism for the repository to send the
client configuration info), but i'm not so sure. After all,
merging is a client-side operation. Nevertheless, the web
editors should not have to jump through hoops to get configured.
Maybe the best way would be to have both repo and client options,
with the latter overriding the former.

Eric Gillespie, Jr. <*> epg@pretzelnet.org
Build a fire for a man, and he'll be warm for a day.  Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 22 18:03:04 2002

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.