First patch makes graphmod to be able to find topological connections between arbitrary list of revisions (which fixes a bit of bugs with displaying graphlogs filtered by file). Second patch makes graphlog (and hgweb) use them, adding also support for all options 'hg log' got.