Improve output when scanning for a usable client.

Review Request #12512 — Created Aug. 8, 2022 and submitted — Latest diff uploaded

Information

RBTools
release-4.x

Reviewers

This rewords some of the output when trying to scan for a usable client
but failing to find anything. It aims to add context to the messages,
helping to see the input (repository type or URL) that led to the error,
and to add instructions to help resolve the issue (saying to check for a
.reviewboardrc, what it should contain, and pointing users to
rbt setup-repo).

The work here is just a base for upcoming work on this logic to clean
things up and to provide error reporting that works with the upcoming
formal SCMClient dependency support.

Tested all the error/warning conditions, verifying the output.

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
Improve output when scanning for a usable client.
This rewords some of the output when trying to scan for a usable client but failing to find anything. It aims to add context to the messages, helping to see the input (repository type or URL) that led to the error, and to add instructions to help resolve the issue (saying to check for a .reviewboardrc, what it should contain, and pointing users to `rbt setup-repo`). The work here is just a base for upcoming work on this logic to clean things up and to provide error reporting that works with the upcoming formal `SCMClient` dependency support.
c2ba0abc3b5003a15179ef279dcee1a3bd3abbf0 Christian Hammond
rbtools/clients/__init__.py
Loading...