[Laszlo-dev] [Laszlo-checkins] r947 - openlaszlo/branches/legals/test/lztest

Jim Grandy jgrandy at openlaszlo.org
Tue Jun 13 15:09:08 EDT 2006


If you turn on auto-props in your local config, svn can be directed  
to use more accurate mime types.

 From the svn book:

> Whenever you introduce a file to version control using the svn add  
> or svn import commands, Subversion runs a
> very basic heuristic to determine if that file consists of human- 
> readable or non-human-readable content. If the latter
> is the decision made, Subversion will automatically set the  
> svn:mime-type property on that file to applica-
> tion/octet-stream (the generic “this is a collection of bytes” MIME  
> type). Of course, if Subversion guesses
> incorrectly, or if you wish to set the svn:mime-type property to  
> something more precise—perhaps image/png
> or application/x-shockwave-flash—you can always remove or edit that  
> property.
>
> Subversion also provides the auto-props feature, which allows you  
> to create mappings of filename patterns to prop-
> erty names and values. These mappings are made in your runtime  
> configuration area. They again affect adds and im-
> ports, and not only can override any default MIME type decision  
> made by Subversion during those operations, they
> can also set additional Subversion or custom properties, too. For  
> example, you might create a mapping that says that
> any time you add JPEG files—ones that match the pattern *.jpg— 
> Subversion should automatically set the
> svn:mime-type property on those files to image/jpeg. Or perhaps any  
> files that match *.cpp should have
> svn:eol-style set to native, and svn:keywords set to Id. Auto-prop  
> support is perhaps the handiest
> property related tool in the Subversion toolbox. See the section  
> called “Config” for more about configuring that sup-
> port.

On Jun 13, 2006, at 11:56 AM, Philip Romanik wrote:

> Hi Tucker,
>
> Do I need to specify the file type as image/gif? When I added this  
> file I
> did not specify any arguments to svn. How do I specify or change  
> the MIME
> type of a file in subversion?
>
> Thanks!
>
> Phil
>
>
>> On 2006-06-13, at 10:50 EDT, pbr at openlaszlo.org wrote:
>>
>>> Property changes on: openlaszlo/branches/legals/test/lztest/1x1.gif
>>> ___________________________________________________________________
>>> Name: svn:mime-type
>>>    + application/octet-stream
>>
>> Not image/gif ?
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev




More information about the Laszlo-dev mailing list