Fix type of 'p' argument in SVN patching implementation.

Review Request #14217 — Created Oct. 29, 2024 and submitted — Latest diff uploaded

Information

RBTools
release-5.x

Reviewers

The SVN implementation for apply_patch was trying to do an integer
comparison on the --px value, which was typed as a string. This change
fixes it so when a p-number is user supplied, we convert it to an int as
necessary.

Ran unit tests (including fixed unit test for the p argument).

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Fix type of 'p' argument in SVN patching implementation.
The SVN implementation for `apply_patch` was trying to do an integer comparison on the `--px` value, which was typed as a string. This change fixes it so when a p-number is user supplied, we convert it to an int as necessary. Testing Done: Ran unit tests (including fixed unit test for the `p` argument).
0a1b7fd325e0997b2d8b408b7baa01c88c6d831c David Trowbridge
rbtools/clients/svn.py
rbtools/clients/tests/test_svn.py
Loading...