[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fix bug: svn patch does not find hunks in file with missing newline at end

From: Daniel Näslund <daniel_at_longitudo.com>
Date: Thu, 4 Feb 2010 18:27:46 +0100

Hi!

[[[
Fix bug with 'svn patch' not recognizing hunks with missing newline at
end of patch file.

* subversion/libsvn_diff/parse-diff.c
  (parse_next_hunk): Don't stop reading lines until we've reached eof
    and the line read is empty.

* subversion/tests/cmdline/patch_tests.py
  (patch_with_fuzz): Remove the newline from the end of the patch.

Patch by: Daniel Näslund <daniel{_AT_}longitudo.com>
]]]

Received on 2010-02-04 18:28:26 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.