new_variant: add support for the BRANCH field

Allow specifying a value for the BRANCH field in commit messages
for those repos (coreboot and EC) that use it.
Update the commit message for coreboot to add the "mb/google" path
prefix.

BUG=b:172936732, b:171427763
TEST=Test the individual scripts and new_variant.py to ensure that
the BREANCH field is handled correctly.
```
CB_SRC_DIR=/mnt/host/source/src/third_party/coreboot \
./create_coreboot_variant.sh hatch hatch tiamat
pushd /mnt/host/source/src/third_party/coreboot
git show
```
Check the commit message for BRANCH=None
```
repo abandon coreboot_tiamat_20201119 .
popd
CB_SRC_DIR=/mnt/host/source/src/third_party/coreboot \
NEW_VARIANT_BRANCH=firmware ./create_coreboot_variant.sh hatch hatch tiamat
pushd /mnt/host/source/src/third_party/coreboot
git show
```
Check the commit message for BRANCH=Firmware
```
repo abandon coreboot_tiamat_20201119 .
popd
./create_initial_ec_image.sh hatch tiamat
pushd /mnt/host/source/src/platform/ec
git show
```
Check the commit message for BRANCH=None
```
repo abandon create_tiamat_20201119 .
popd
NEW_VARIANT_BRANCH=firmware ./create_initial_ec_image.sh hatch tiamat
pushd /mnt/host/source/src/platform/ec
git show
```
Check the commit message for BRANCH=Firmware
```
repo abandon create_tiamat_20201119 .
popd
./new_variant.py --board=hatch --variant=tiamat --branch=firmware
```
Generate the fitimage when prompted
```
./new_variant.py --continue
```
new_variant stops and asks you to push to coreboot. Don't. Instead,
```
pushd /mnt/host/source/src/third_party/coreboot
git show
```
Check the commit message for BRANCH=Firmware
```
popd
pushd /mnt/host/source/src/platform/ec
git show
```
Check the commit message for BRANCH=Firmware
```
popd
./new_variant.py --abort
```

Change-Id: I6ad70f4d1d0cef5a1f73e879f0cb4d3bb62918c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2549435
Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
3 files changed