auto-props syntax in file vs. property
From: Chris <devnullaccount_at_yahoo.se>
Date: Tue, 9 Jan 2018 15:15:18 +0000 (UTC)
Hi,
I am really confused by how to set an auto-property when I need multiple "parameters" to a single property.
*.java = svn:mime-type=text/java;;charset=iso-8859-1;svn:eol-style=LF
That is, use ;; as an escape between the "parameters" for file type and charset. Adding a java-file and doing propget gives this:
Using the exact same line in ~/.subversion/config seems to see "charset" as a separate property from "mime-type" and set two different properties on the file with "charset" having no meaning. Using svn_apply_autoprops.py on that syntax at least gave me those separate props. A quick web search showed someone enclosing the entire property in quotes and only using a single semicolon, i.e.:
I can't find anything in the manual (http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html) describing what the right separator/escape sequence is for these two and if there's some common syntax that can be used for both.
At least for a transition period, I will need to keep the config-file in order to run svn_apply_autoprops on files coming in from branches created added before we added svn:auto-props (and have wrong props) so I need both working and I'm unsure of what the right way for doing this is.
TIA,
|
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.