try hg twice before failing