sync with hg