- if a revision is specified, retrieve the corresponding branch name and use that for the clone URL
- only show the ''Repository URL'' when browsing the repository root
- kept previous link to the matching location in hg's own browser as a comment, in case someone finds that useful (+ fix for posixpath)
Changes suggested by Remy Blank in #1781.