def pre_rebase(self, destination, msg=None):
        name = destination.split('/')[-1]
        msg = msg if msg is not None else (
            "Releasing package '" + name + "' to: '" + destination + "'"
        )
        info(msg)
        ret = trim(undo=True)
        return 0 if ret is None or ret < 0 else ret  # Ret < 0 indicates nothing was done
dataset/ETHPy150Open ros-infrastructure/bloom/bloom/generators/release.py/ReleaseGenerator.pre_rebase/original