svn diff behaviour with eol-style=native?
From: Louis-Philippe Gagnon <louisphilippe_at_macadamian.com>
Date: 2006-09-04 19:33:47 CEST
I've encountered an odd behaviour when using "svn diff" on a file marked
Note that this isn't a "help, what do I do?" message, nor a "this
(tested with official Windows build of svn 1.3.2)
Briefly: svn diff on a eol-style=native file generates an output with
This has the unfortunate consequence that on Windows, with an
There are reasonably simple workaround; filtering the diff through
(one experiment I'm not currently set up to try is whether the
I can't imagine I'm the first to notice, but I haven't been able to find
I did find some somewhat-related info:
very old subversion issues: 851, 894
http://svn.haxx.se/dev/archive-2004-04/0348.shtml
http://forums.shareaza.com/showthread.php?s=7df5e89bdd48482ea0479d24cd9c83b9&postid=291061#post291061
So... bug? feature?
Here's a short scenario illustrating how to reproduce the issue:
===========================
D:\src\svn\checkedout>echo line1 > file.dos
D:\src\svn\checkedout>svn add file.dos
D:\src\svn\checkedout>svn propset svn:eol-style native file.dos
D:\src\svn\checkedout>svn ci file.dos
D:\src\svn\checkedout>echo line2 >> file.dos
D:\src\svn\checkedout>svn diff file.dos > file.diff
D:\src\svn\checkedout>svn revert file.dos
D:\src\svn\checkedout>patch -p0 < file.diff
abnormal program termination
D:\src\svn\checkedout>svn --version
=============================
I learned years ago to recognize this crash as being caused by feeding a
-- LPG --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Wed Sep 6 22:45:27 2006 |
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.