Right now, we do pretty random stuff with repo_name file. With -R we already rewrite it, with -r we always read it. That seems a little pointless. 1) check where/whether .repo_name is used actually, 2) -R should be able to read it as well, and update only when necessary (maybe -r could be used to specify a new name for it?), 3) -r should be able to work without repo_name existing (with x-names).
https://github.com/mgorny/pms-test-suite/issues/5