Added publish support for hg