Sheriffing/How To/Backouts
Jump to navigation
Jump to search
Backouts
Sheriffs also have to do Backouts of checkins from the various Mozilla Trees to fix bustages, test failures etc. This document should help doing these backouts
Requirements:
- make sure you have the qbackout extension from https://bitbucket.org/sfink/qbackout
- Instructions: https://bitbucket.org/sfink/qbackout/src/06d696eea7d5002b228981151267bd1855747cdb/__init__.py?at=default#cl-63 or script
Make sure you have mq also activated in your hgrc too, otherwise you get an error message
Example backout:
backout of changeset abc1234
hg qbackout -r abc1234 -e
with -r you define the revision/checkin you want to backout with -e you can change the commit message, useful for closed trees etc
hg qfinish -a
finishes this transaction and you can proceed with hg push etc
when the commit message was wrong like forgot closed tree etc
hg qimport -r tip && hg qrefresh -e && hg qfinish -a && hg push