jenkinsci/mercurial-plugin — comment on commit c1487999ec870062e5502afa7ab248871350fe94
File: src/main/java/hudson/plugins/mercurial/MercurialSCM.java line 300
By jglick:

I think `--rev` is fine here; it is more general - would work also with tags or bookmarks, maybe even revsets.

Note that I rewrote the code above in `compareRemoteRevisionWith` yesterday.