Switch scm client discovery to entry points

Review Request #4145 — Created May 13, 2013 and submitted — Latest diff uploaded

Information

RBTools
master

Reviewers

Switch scm client discovery to entry points.

SCM Clients will now be discovered using entry points, instead of a
hardcoded list. This will allow third party packages to provide
support for additional clients.

Additionally, a '--repository-type' option has been added to all of
the rbt commands and post-review. This option allows the user to
specify a particular repository type, which the working directory will
be checked for before other repository types.

The valid repository types can be printed using the new
'--list-repository-types' option to post-review, or by invoking the
new 'rbt list-repo-types' command.
Used the --repository-type option and confirmed the provided type was
being checked initially (By observing the debug messages).
setup.py
docs/rbtools/post-review.txt
docs/rbtools/rbt/commands/attach.txt
docs/rbtools/rbt/commands/close.txt
docs/rbtools/rbt/commands/diff.txt
docs/rbtools/rbt/commands/patch.txt
docs/rbtools/rbt/commands/post.txt
docs/rbtools/rbt/commands/publish.txt
docs/rbtools/rbt/commands/status.txt
rbtools/postreview.py
rbtools/clients/__init__.py
rbtools/commands/__init__.py
rbtools/commands/attach.py
rbtools/commands/close.py
rbtools/commands/diff.py
rbtools/commands/patch.py
rbtools/commands/post.py
rbtools/commands/publish.py
rbtools/commands/status.py
Loading...