add repo and update revision