Add dependency checks for Mercurial.

Review Request #12549 — Created Aug. 18, 2022 and submitted

Information

RBTools
release-4.x

Reviewers

This updates MercurialClient to add formal support for dependency
checks. MercurialClient.check_dependencies() now determines if hg
is installed.

MercurialClient.get_local_path() now calls this instead of checking for
dependencies itself, emitting a warning if dependencies haven't already
been checked via setup() or has_dependencies().

Unit tests have been updated to include new dependency-related tests. If
hg isn't installed, tests that depend on it will be automatically
skipped.

Unit tests pass on Python 3.7-3.11.

Tested with and without hg installed.

Summary ID
Add dependency checks for Mercurial.
This updates `MercurialClient` to add formal support for dependency checks. `MercurialClient.check_dependencies()` now determines if `hg` is installed. `MercurialClient.get_local_path()` now calls this instead of checking for dependencies itself, emitting a warning if dependencies haven't already been checked via `setup()` or `has_dependencies()`. Unit tests have been updated to include new dependency-related tests. If `hg` isn't installed, tests that depend on it will be automatically skipped.
a31dc474edd06d0c9d71e6275ab07b66877fc776
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.x (15f8b3b)