Init from hg