<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/patch.git/tests, branch origin</title>
<subtitle>git.savannah.gnu.org: git/patch.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/'/>
<entry>
<title>Fix removing empty directories</title>
<updated>2013-03-10T18:02:54+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2013-03-10T18:02:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=2f40ef66bea54be23a24f616cde021d8d7fc25be'/>
<id>2f40ef66bea54be23a24f616cde021d8d7fc25be</id>
<content type='text'>
Reported by Thomas Moschny &lt;thomas.moschny@gmx.de&gt;:
src/patch.c (main): Temporary output files are created in the same directory as
the output file.  Make sure to remove them before removing empty files and
their empty ancestor directories; else the directories won't be empty.
tests/remove-directories: Add directory removal test case.
tests/Makefile.am (TESTS): Add new test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported by Thomas Moschny &lt;thomas.moschny@gmx.de&gt;:
src/patch.c (main): Temporary output files are created in the same directory as
the output file.  Make sure to remove them before removing empty files and
their empty ancestor directories; else the directories won't be empty.
tests/remove-directories: Add directory removal test case.
tests/Makefile.am (TESTS): Add new test case.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initialize data structures early enough</title>
<updated>2012-10-04T10:43:05+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-10-04T10:33:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=291ec175812b7ba291d124e4cf2fbf9efec590c8'/>
<id>291ec175812b7ba291d124e4cf2fbf9efec590c8</id>
<content type='text'>
* src/patch.c (main): Initialize data structures early enough, before error
paths can access them.
* tests/bad-usage: Test bad command line usage.
* tests/Makefile.am (TESTS): Add bad-usage here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (main): Initialize data structures early enough, before error
paths can access them.
* tests/bad-usage: Test bad command line usage.
* tests/Makefile.am (TESTS): Add bad-usage here.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't fail test suite if printf '\0' is broken</title>
<updated>2012-09-30T11:06:35+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-30T11:06:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=47191c287d952fde12a9920fe5d800241b6f668d'/>
<id>47191c287d952fde12a9920fe5d800241b6f668d</id>
<content type='text'>
* tests/create-delete: Skip binary diff test if printf '\0' is broken.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/create-delete: Skip binary diff test if printf '\0' is broken.
</pre>
</div>
</content>
</entry>
<entry>
<title>Repair 'backup of unmodified file' test</title>
<updated>2012-09-28T16:39:33+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-28T10:46:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=fc5ddce20e783dde69c6903b6270ec4f290b3150'/>
<id>fc5ddce20e783dde69c6903b6270ec4f290b3150</id>
<content type='text'>
tests/create-delete: Repair 'backup of unmodified file' test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests/create-delete: Repair 'backup of unmodified file' test.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve the previous commit</title>
<updated>2012-09-25T23:33:22+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-25T23:33:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=e8bfce654715e443830069b9dfa73e7300de0392'/>
<id>e8bfce654715e443830069b9dfa73e7300de0392</id>
<content type='text'>
* src/patch.c: Only print the "file is not empty after patch" message when
trying to delete the output file.  Say that we were trying to delete the file.
* tests/create-delete: Fix the expected messages.  Add test cases for the
--remove-empty-files and --posix options.
* NEWS: Better describe this change.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c: Only print the "file is not empty after patch" message when
trying to delete the output file.  Say that we were trying to delete the file.
* tests/create-delete: Fix the expected messages.  Add test cases for the
--remove-empty-files and --posix options.
* NEWS: Better describe this change.
</pre>
</div>
</content>
</entry>
<entry>
<title>Only expect files to become empty if the patch says so</title>
<updated>2012-09-25T02:07:53+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-25T00:56:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=1d9ed51e9c812d49affc2f9b3cd985257f6a525b'/>
<id>1d9ed51e9c812d49affc2f9b3cd985257f6a525b</id>
<content type='text'>
Test cases based on patches from Dmitry V. Levin &lt;ldv@altlinux.org&gt;.
* src/patch.c (main): Only expect files to become empty if the patch says so.
* NEWS: Document this change.
* tests/create-delete: Add (more) empty vs. non-empty test cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test cases based on patches from Dmitry V. Levin &lt;ldv@altlinux.org&gt;.
* src/patch.c (main): Only expect files to become empty if the patch says so.
* NEWS: Document this change.
* tests/create-delete: Add (more) empty vs. non-empty test cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve messages when in --dry-run mode</title>
<updated>2012-09-22T18:10:53+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-04-17T20:37:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=3ccb16e10b7b4312e9b6096760ddc4c2d90194f2'/>
<id>3ccb16e10b7b4312e9b6096760ddc4c2d90194f2</id>
<content type='text'>
* src/patch.c (main): Say that we are checking a file and not that we are
patching it in --dry-run mode.  Don't say "saving rejects to file" when we
don't create reject files.
* tests/reject-format: Add rejects with --dry-run test case.
* tests/bad-filenames, tests/fifo, tests/mixed-patch-types: Update.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (main): Say that we are checking a file and not that we are
patching it in --dry-run mode.  Don't say "saving rejects to file" when we
don't create reject files.
* tests/reject-format: Add rejects with --dry-run test case.
* tests/bad-filenames, tests/fifo, tests/mixed-patch-types: Update.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve handling of LF vs. CRLF line endings</title>
<updated>2012-09-22T18:02:48+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-22T17:55:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=db1bd7f6934cd8d04ec1fb6347a5571c2e7e1234'/>
<id>db1bd7f6934cd8d04ec1fb6347a5571c2e7e1234</id>
<content type='text'>
* src/patch.c (check_line_endings): New function.
(main): When a hunk fails, report when the line endings differ between the
input file and the patch.
* src/pch.c (there_is_another_patch): When saying that we strip trailing CRs,
also say how to turn this off.
* tests/crlf-handling: Update changed messages.  Add test case that fails.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (check_line_endings): New function.
(main): When a hunk fails, report when the line endings differ between the
input file and the patch.
* src/pch.c (there_is_another_patch): When saying that we strip trailing CRs,
also say how to turn this off.
* tests/crlf-handling: Update changed messages.  Add test case that fails.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a missing explanation in the tests/crlf-handling test case</title>
<updated>2012-09-20T02:34:40+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-20T02:33:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=1d9d403394750474c339dd1473119a0794361240'/>
<id>1d9d403394750474c339dd1473119a0794361240</id>
<content type='text'>
* tests/crlf-handling: Add explanation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/crlf-handling: Add explanation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add --follow-symlinks option for backwards compatibility</title>
<updated>2012-09-19T01:16:07+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-19T00:01:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=293415dbcf8c621c8aecb4347abd32fd60935a8b'/>
<id>293415dbcf8c621c8aecb4347abd32fd60935a8b</id>
<content type='text'>
* src/common.h (follow_symlinks): New variable.
* src/patch.c (longopts): Add new --follow-symlinks option.
(get_some_switches): Recognize the new option.
* src/util.c (stat_file): Follow symlinks if requested.
* patch.man: Document the new option.
* tests/symlinks: Add test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/common.h (follow_symlinks): New variable.
* src/patch.c (longopts): Add new --follow-symlinks option.
(get_some_switches): Recognize the new option.
* src/util.c (stat_file): Follow symlinks if requested.
* patch.man: Document the new option.
* tests/symlinks: Add test case.
</pre>
</div>
</content>
</entry>
</feed>
