copy from hg repository