replace commit number by revision hash in buildrepo