committablectx: add subrev method to return None
This allows a future patch to use object oriented style to remove an if
statement in the status method.
basectx: add subrev method to return the rev of a subrepo given a subpath
This will be used in an upcoming patch to simplify the status method by
eliminating an if block.