About this bug:

On 2022-08-14 14:11:15 -0400, Nathan Hartman wrote:
> But applying your original patch to a clean working copy and then
> running 'svn diff' does show it -- note the - and + of </Project> and
> "\ No newline at end of file" at the end of the output:
[...]
> That looks like a bug in SVN. This machine (the one I'm using now) has
> 1.13.0 so I'll try this with 1.14.2 later...

I can reproduce the issue with svn 1.14.2, and this is due to
svn:eol-style being set to native.

To reproduce:

------------------------------------------------------------
#!/bin/sh

set -ex

svn --version

mkdir my-test-svn
cd my-test-svn

svnadmin create svn
root=file://`pwd`/svn
svn co "$root" wc
cd wc

printf %s "$(printf "%d\n" `seq 8`)" > file
svn add file
svn ps svn:eol-style native file
svn ci -m 'add file'

printf %s "$(printf "%d\n" `seq 2 8`)" > file
svn diff > file.patch
cat file.patch
svn revert file
svn patch file.patch

svn diff

cd ../..
rm -rf my-test-svn
------------------------------------------------------------

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to