added tests to support MERCURIAL_REVISION_SHORT environment variable