Remove deprecated warning from SCMClient.has_dependencies.

Review Request #14487 — Created June 27, 2025 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

The has_dependencies() method has for a while had an expect_checked
parameter which will skip setup in the case where we know that we've
already done it. This raised a deprecation warning about being removed
in RBTools 5, but we never did so. This change modifies the warning to
be an exception instead, and updates all the relevant test cases to
match.

Ran unit tests.

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
Remove deprecated warning from SCMClient.has_dependencies.
The `has_dependencies()` method has for a while had an `expect_checked` parameter which will skip setup in the case where we know that we've already done it. This raised a deprecation warning about being removed in RBTools 5, but we never did so. This change modifies the warning to be an exception instead, and updates all the relevant test cases to match. Testing Done: Ran unit tests.
df7dbdc05d723bf5b6a55b974a1e4c5505703287 David Trowbridge
rbtools/clients/base/scmclient.py
rbtools/clients/tests/test_base_scmclient.py
rbtools/clients/tests/test_bzr.py
rbtools/clients/tests/test_clearcase.py
rbtools/clients/tests/test_cvs.py
rbtools/clients/tests/test_git.py
rbtools/clients/tests/test_mercurial.py
rbtools/clients/tests/test_p4.py
rbtools/clients/tests/test_sos.py
rbtools/clients/tests/test_svn.py
rbtools/clients/tests/test_tfs.py
Loading...