Add a RegistryHook base class

Review Request #8530 — Created Nov. 7, 2016 and submitted — Latest diff uploaded

Information

Djblets
release-0.10.x

Reviewers

The RegistryHook is a base class that handles registration and
unregistration of items from registries. Subclasses can set the
specific registry to use.

Tests have been added to ensure that the hook correctly registers
items.

  • Ran unit tests.
  • Used this in /r/8531.