Just how reliable is this? [Mercurial documentation](http://mercurial.selenic.com/wiki/Subrepository#Use_.27trivial.27_subrepo_paths_where_possible) suggests that it could become confused. Since `.hgsub` is in `*.ini` format I would recommend you use Ini4J to read it.