scm: use scmid for "commit:xxx" link if available (#3724).
scmid is more solid than revision number.
Contributed by Yuya Nishihara.
Authored by: tmaruyama 2011-01-11
Parent: [r4693]
Child: [r4695]