subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: auto-props syntax in file vs. property
Date Tue, 09 Jan 2018 16:05:29 GMT
Chris wrote on Tue, 09 Jan 2018 15:15 +0000:
> When setting svn:auto-props, it seems I can do this:
> 
>  *.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:
> text/java;charset=iso-8859-1
> Which seems to be correct. Right?

Yes.

> 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.

I can't reproduce this.  With that line in ~/.subversion/config I get:

[[[
% svn add foo.java 
A         foo.java
% svn pl -v foo.java
Properties on 'foo.java':
  svn:eol-style
    native
  svn:mime-type
    text/java;charset=iso-8859-1
]]]

(The value 'native' was inherited from svn:auto-props in the working
copy I was testing in.)

Also, does it really set *two* properties on the file?  Not three?  "svn:mime-type",
"charset", "svn:eol-style"?

What client and version do you use?

Cheers,

Daniel

Mime
View raw message