[prev in list] [next in list] [prev in thread] [next in thread]
List: subversion-issues
Subject: [Issue 4065] New - server should enforce LF normalization for
From: jcorvel () tigris ! org
Date: 2011-11-20 0:47:59
Message-ID: iz4065 () subversion ! tigris ! org
[Download RAW message or body]
http://subversion.tigris.org/issues/show_bug.cgi?id=4065
Issue #|4065
Summary|server should enforce LF normalization for svn:eol-sty
|le=native files
Component|subversion
Version|all
Platform|Other
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|ENHANCEMENT
Priority|P3
Subcomponent|unknown
Assigned to|issues@subversion
Reported by|jcorvel
------- Additional comments from jcorvel@tigris.org Sat Nov 19 16:47:58 -0800 2011 -------
According to SVN's specs, files with svn:eol-style=native must be normalized to
LF line-termination by the client (some SVN behavior depends on this).
Currently the client is the sole responsible for this normalization, the server
doesn't care. However, it appears that some clients do not honor this
constraint (e.g. git-svn on Windows), causing trouble for all other svn clients
using the same repository (e.g. useless full-file diffs, files being marked
modified spuriously, tree-conflicts caused by these spurious modified-marks, ...).
In order to preserve the integrity of the repository, the server should enforce
this.
Some discussion on the users list:
http://svn.haxx.se/users/archive-2011-10/0300.shtml
As a workaround, it may be possible (untested) to block commits that violate
this constraint by a pre-commit hook (see mailinglist thread for a suggestion).
However this is not quite sufficient, because it's not very performant (and
slow pre-commit hooks can cause large commits to hit client-side timeouts), and
error-prone if everyone starts writing their own hook scripts.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=463&dsMessageId=2881481
To unsubscribe from this discussion, e-mail: [issues-unsubscribe@subversion.tigris.org].
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic