RE: End of the Line for Merge? [Merging and EOL Style Problem]
From: Rob Hubbard <Rob.Hubbard_at_celoxica.com>
Date: 2006-08-15 17:03:51 CEST
Hello,
Thanks for the reply Nico.
> 1: Work out a way to force svn:eol-style going forward. You don't want this
Well, I suppose that pre-commit could check all added files for either the presence of a valid svn:eol-style property or explicit membership of a list of permitted exclusions (such as *.gif files).
> 2: Convert every appropriate file as determined by those new policies that
What's reason for using this many separate steps please?
I'd assumed I could simply set the svn:eol-style on all appropriate files and commit; I think SVN itself modifies the files (in the repository, at least) on the commit. Or am I mistaken? (My working copy might need a "downdate"/update-cycle to deal with the working copies of files, perhaps.)
> dos2unix and unix2dos are built into most UNIX-like systems and CygWin
Yes; for badly conflicting files, dos2unix could be applied to the triple of input files SVN produces (*.mine etc.) and then diff3 or diff/patch could be applied again manually. Hopefully that would result in smaller, more localised conflicts, rather than whole-left-file/whole-right-file conflicts.
Is there any way to get SVN to use programs like diff and patch with end-of-line-insensitive processing in the first place, rather than dealing with poor merge results afterwards?
(I recently posted another query relating to that: <http://svn.haxx.se/users/archive-2006-08/0643.shtml>.)
> You really, really, really want that pre-commit going forward. Honest.
Okay. Yes, that would protect against users not having their autoprops set correctly.
Thanks again,
-----Original Message-----
Rob Hubbard wrote:
> There is an obstacle to just going ahead and doing this. When
This is an old bane of source control systems, whether you use native EOL or
1: Work out a way to force svn:eol-style going forward. You don't want this
You'll run into trouble with anyone who expects to use an NFS or SMB mounted
> Alternatively, if the svn:eol-style properties are set on all active
dos2unix and unix2dos are built into most UNIX-like systems and CygWiin
> Obviously, I also need to set up everyone's config file with the
You really, really, really want that pre-commit going forward. Honest.
_____________________________________________________________________
This email and any files transmitted with it are confidential and
---------------------------------------------------------------------
|
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.