kernel-rebase: Import continuous rebase utilities

Add automatic rebase with custom conflict resolution system. It offers
two modes:
* Triage: drop all patches that conflict in a way that can't be resolved
automatically. This helps in estimating the workload of the next rebase
by counting unresolved patches, testing whether each of the rebased
topic branches builds etc. The collected data can be automatically
formatted into a report and sent using the mailing scripts, also
added by this patch.
* Normal: interactively guides the user through the rebasing process,
saves resolutions to encountered conflicts and allows for overriding
dispositions from the database.

BUG=b:193402183
TEST=./rebase.py

Change-Id: If0a05649307b57789339a16f281de931e5b14110
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3010276
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Tested-by: Kamil Koczurek <koczurek@google.com>
Commit-Queue: Kamil Koczurek <koczurek@google.com>
9 files changed