Added revision number support for hg and git