A CLI tool for reverting changes made in a Launchpad merge proposal. Does roughly the following:
- Given a link to a merge proposal (
--mp-to-revert
), figure out into which branch it was merged - Check that branch out and pull
- Create a new branch (with the name being branch name
--new-branch-suffix
) - Revert the merge commit
- Push the new branch with the revert to upstream specified by
--upstream
- Create a new merge proposal against the same branch the original MP was merged into
- Clone the repo
pip install --user .
git-lp-revert-mp \
--upstream ivan \
--new-branch-suffix revert-cool-feature \
--mp-to-revert https://code.launchpad.net/~user_mcuserface/vapourware/ git/cool_repo/ merge/40000