On Tue, Jan 27, 2015 at 09:20:25PM +0100, Dmitry Pavlenko wrote:
> Hello Magnus,
> Every combination of text/eol/svneol attributes corresponds to
> svn:eol-style/svn:mime-type combination.
>
> If "text" attribute is set and "eol" is set to undef ("!eof"), this
> corresponds to svn:eol-style=native, svn:mime-type unset. So if you
> have
>
> * text !eol
>
> rule in .gitattributes, for SVN files with svn:eol-style=native,
> svn:mime-type unset no additional line will be created; for other
> files (e.g. with svn:eol-style unset) there will be a line
> corresponding to their properties (for svn:eol-style unset, the line
> will have form "path/to/file -text").
> The rule
>
> * text=auto !eol
>
> acts as "* text !eol" for text files and as "* -text !eol" for binary files.
> This means that by adding "*.txt text" rule you changed nothing because "* text=auto" rule already acts as "* text" for text files.
>
>
> So there're 2 ways to solve the problem.
> Solution 1, recommended. Agree with colleagues upon using svn:eol-style=native properties for all text and source code files.
> SubGit/Git users can do nothing in this case because "* text=auto
> !eol" rule already acts for newly added files, that's translated to
> svn:eol-style=native.
> SVN users should set up SVN auto-properties in Subversion config.
> Here's good documentation on that
>
http://www.mediawiki.org/wiki/Subversion/auto-props
> In particular, "*.txt = svn:eol-style=native" line in Subversion
> config file would prevent "-text" lines for *.txt files. For other
> text files I also recommend everyone to set up auto-props.
Ah, I was under the impression that my changes to .gitattributes would
be reflected in the SVN properties of files and folders. I'm guessing
I'm wrong.
The UI of SVN properties is terrrible... so is there a way of
converting my beautifully crafted .gitattributes to a series of SVN
calls?
AFAIU, the auto-props have to be set on all existing folders, as well
as added manually to all new folders, right?
We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about.
-- Albert Einstein