Add Subversion unit tests for diffing/patching empty files.

Review Request #12630 — Created Sept. 23, 2022 and submitted — Latest diff uploaded

Information

RBTools
release-4.x

Reviewers

We have code in SVNClient for adding empty hunk info to added/deleted
empty files, instead of just providing Index: lines, but this never
had any test coverage.

To ensure we have proper Subversion diff coverage, this change adds
missing unit tests for diffs and patching, covering both the added and
deleted files.

This required a new commit in the test Subversion repository, adding an
empty file we could delete for these tests.

Unit tests pass.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add Subversion unit tests for diffing/patching empty files.
We have code in `SVNClient` for adding empty hunk info to added/deleted empty files, instead of just providing `Index:` lines, but this never had any test coverage. To ensure we have proper Subversion diff coverage, this change adds missing unit tests for diffs and patching, covering both the added and deleted files. This required a new commit in the test Subversion repository, adding an empty file we could delete for these tests.
afeb090e2e633d8b28bdf506651dd6b68e0f0f70 Christian Hammond
rbtools/clients/tests/test_svn.py
rbtools/clients/tests/testdata/svn-repo/db/current
rbtools/clients/tests/testdata/svn-repo/db/rep-cache.db-journal
rbtools/clients/tests/testdata/svn-repo/db/txn-current
rbtools/clients/tests/testdata/svn-repo/db/revprops/0/6
rbtools/clients/tests/testdata/svn-repo/db/revs/0/6
rbtools/clients/tests/testdata/svn-repo/db/transactions/.gitignore
rbtools/clients/tests/testdata/svn-repo/db/txn-protorevs/.gitignore
Loading...