init hg in update_work_mirror