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.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.