Initial tool commit from mercurial