Init from hg.