Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4085652
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:36:36+00:00 2026-05-20T18:36:36+00:00

For background on my question: svn won’t diff a file it thinks is binary

  • 0

For background on my question: svn won’t diff a file it thinks is binary

$ svn diff data/assets/site/ir_gallery/images.kml
Index: data/assets/site/ir_gallery/images.kml
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/vnd.google-earth.kml+xml

A recent stack overflow answer ( svn diff: file marked as binary type ) showed you can force a mime type:

$ svn propset svn:mime-type 'text/plain' data/assets/site/ir_gallery/images.kml
property 'svn:mime-type' set on 'data/assets/site/ir_gallery/images.kml'

Note that prior answer is incomplete… you also have to:

$ svn commit

Now my new question is: can I set a default, so all future “vnd.google-earth.kml+xml” files are treated as text by svn? The redbook appears silent on this topic: http://svnbook.red-bean.com/en/1.2/svn.advanced.props.html saying only:

...if a file's svn:mime-type property is set to a non-text MIME type
(generally, something that doesn't begin with text/, though there are
exceptions) then...

What exceptions? Are these exceptions baked into the svn code, or accessible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:36:36+00:00Added an answer on May 20, 2026 at 6:36 pm

    The answer depends on the svn client that you are using. In the official svn client, the option you are looking for is Automatic Property Setting. The tl;dr version is you need to update your user or system config, set the enable-auto-props setting to yes in the miscellany section, and create a new section called auto-props which defines the patterns you want to match and the properties you are looking to set.

    For your example of kml files:

    ### Section for configuring miscelleneous Subversion options.
    [miscellany]
    enable-auto-props = yes
    
    [auto-props]
    *.kml = svn:mime-type=text/plain;svn:eol-style=native
    

    This will ensure that when you add a .kml file to your repository, it will have a mime-type of text/plain and will use line endings native to the platform of the client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Coming from an svn background, I had this question: git equivalent of svn status
Background: this question . git apply <patchfile> just recreates the file but without committing
(See this question and this question for background...) Given: grid = new Slick.Grid(#myGrid, data,
Background (question further down) I've been Googling this back and forth reading RFCs and
Please refer to this background question. After constructing this COUNT, how would I then
Background to Question: Software for analysing blood glucose readings for diabetics, typically have something
Question text/background and finds My browser sends some HTTP header (e.g. referer) to my
For the background to this question, see How to I serialize a large graph
Hi and thanks for your attention. First some background on the question: I have
Background: I hope my question is not too vague. I will try and explain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.