Chrome OS and Android have found it useful to have an automated revert
checker. It was requested to upstream it, since other folks in the LLVM
community may also find value in it.
The tests depend on having a full (non-shallow) checkout of LLVM. This
seems reasonable to me, since:
- the tests should only be run if the user is developing on this script
- it's kind of hard to develop on this script without local git history :)
If people really want, the tests' dependency on LLVM's history can be
removed. It's mostly just effort/complexity that doesn't seem necessary.
Please see llvm/utils/revert_checker.py's docstring for more info/usage
examples.
Should this be assert across_sha instead of assert across_ref ? The ref could be spelled many ways, the sha is the canonical form and looks like what intermediate_commits should contain.