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

Re: Setting properties/mime types (was: Beginner's questions)

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-29 11:59:22 CEST

On May 29, 2007, at 04:01, Holger Schulz wrote:

> Am 2007-05-29 um 02:09 schrieb Ryan Schmidt:
>
>> Subversion will mark files as binary as necessary... except for
>> PDFs, which it will detect as text, since PDF is a largely text-
>> based format. You can inform Subversion that you would like PDFs
>> to be treated as binary by setting the svn:mime-type property on
>> those files. See also the section in the book on automatic
>> properties.
>>
>> http://svnbook.red-bean.com/en/1.2/
>> svn.advanced.props.html#svn.advanced.props.auto
>
> AFAIU that, I set the properties in the working copy and commit to
> get them in the repository.
>
> I tried that with a single file in my test repository.
>
> I tried
>
> [panic:FSA60 Mathe/2007-05-16Klausur/klausur] kuddel% svn propset
> test 'Test' 2007-05-16klausur3.tex
>
>
> and got the answer
>
>
> Eigenschaft ?\194?\187test?\194?\171 f?\195?\188r ?\194?
> \1872007-05-16klausur3.tex?\194?\171 gesetzt
>
> (By the way, is there a good chance to make subversion talk
> English, it seems it has its problem with German?)

Something like this will get you correct German:

export LANG=de_DE.UTF-8

Something like this will get you correct English:

export LANG=en_US.UTF-8

Check the names of the directories in /usr/share/locale for the
correct locale names on your system.

> Trying to read the properties via
>
> [...]svn proplist 2007-05-16klausur3.tex
>
>
> is answered with
>
> Eigenschaften zu ?\194?\1872007-05-16klausur3.tex?\194?\171:
>
> test
>
> which seems to state the property name, but not the property value.

If you want to see the values too, use "svn proplist -v"

> Hm.
>
> Further, which mime type do I have toset for PDF files?

Subversion treats files as text if their MIME type begins with
"text/". Use anything else to have Subversion treat it as binary. The
commonly-accepted MIME type for PDFs is "application/pdf".

> Could the following lead to the correct syntax?
>
> svn propset -R svn:mime-type '<correct mime type for PDF files>'
> *.pdf

That would be the correct way to set the MIME types on the PDF files
in the current directory, yes.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 29 12:01:00 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.