This script can be used if one wants to mass-rename branches in a
pagure instance. The script will find all the branches that currently
conflict with the new name and move their references to a packed-refs
file.
That is if the current branches are in fact part of a branch. If the
target branch already exist with the exact same name, then the renaming
will fail as we can't have two branches with the same name and two
different reference, one in refs/heads and the other in packed-refs.
This script can be used if one wants to mass-rename branches in a
pagure instance. The script will find all the branches that currently
conflict with the new name and move their references to a packed-refs
file.
That is if the current branches are in fact part of a branch. If the
target branch already exist with the exact same name, then the renaming
will fail as we can't have two branches with the same name and two
different reference, one in refs/heads and the other in packed-refs.
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr