1#!/usr/bin/env bash
2. git-drover.demo.common.sh
3
4echo "# Make sure we have the most up-to-date branch sources."
5run git fetch
6echo
7echo "# Checkout the branch with the change we want to revert."
8run git checkout -b drover_9999 branch-heads/9999
9echo
10drover_c "This change is horribly broken."
11echo "# Here's the commit we want to revert."
12run git log -n 1
13echo
14echo "# Now do the revert."
15silent git revert --no-edit $(git show-ref -s pick_commit)
16pcommand git revert $(git show-ref -s pick_commit)
17echo
18echo "# That reverted the change and committed the revert."
19run git log -n 1
20echo
21echo "# As with old drover, reverts are generally OK to commit without LGTM."
22pcommand git cl upload -r some.committer@chromium.org --send-mail
23run git cl land --bypass-hooks
24