init from hg