Retrieve the most suitable revision for source links in the docs
Replace getrev.sh with a one-liner (thanks @bellthoven)
Merge pull request #1078 from alco/custom-doc-rev

Retrieve the most suitable revision for source links in the docs