use retry with hgtool and fix get revision
Merge branch 'clone_less' into clone_less-dev