Add a new extension hook for registering SCMTools.
Review Request #12395 — Created June 21, 2022 and submitted — Latest diff uploaded
Now that SCMTools are backed by a registry instead of relying entirely
on entry points and theregisterscmtools
management command, we can
make it easier for extensions to add new ones. This change adds a new
extension hook,SCMToolHook
, for doing so. It works very similarly to
the existing hook for hosting services.
- Ran unit tests.
- Built and reviewed docs.
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
docs/manual/extending/index.rst |
---|
docs/manual/extending/extensions/hooks/hosting-service-hook.rst |
---|
docs/manual/extending/extensions/hooks/index.rst |
---|
docs/manual/extending/extensions/hooks/scmtool_hook.rst |
---|
reviewboard/extensions/hooks.py |
---|
reviewboard/extensions/tests/test_scmtool_hook.py |
---|