added support for determining the code revision in a mercurial code repository