[all-commits] [llvm/llvm-project] ce2a5f: llvm/utils: guarantee revert_checker's revert orde...

George Burgess IV via All-commits all-commits at lists.llvm.org
Tue Jul 27 18:03:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce2a5fa72be3fd1d606505f98d3831706c28cfa8
      https://github.com/llvm/llvm-project/commit/ce2a5fa72be3fd1d606505f98d3831706c28cfa8
  Author: George Burgess IV <gbiv at google.com>
  Date:   2021-07-28 (Wed, 28 Jul 2021)

  Changed paths:
    M llvm/utils/revert_checker.py
    M llvm/utils/revert_checker_test.py

  Log Message:
  -----------
  llvm/utils: guarantee revert_checker's revert ordering

At the moment, the revert ordering from this tool is unspecified (though
it happens to be in `git log` order, so newest reverts come first).

>From the standpoint of tooling and users, this seems to be the opposite
of what we want by default: tools and users will generally try to apply
these reverts as cherry-picks. If two reverts in the list are close
enough to each other, if the reverts get applied out of order, we'll get
a merge conflict.

Rather than having `reverse`s for all tools (and mental reverses for
manual users), just guarantee an oldest-first output ordering for this
function.

Differential Revision: https://reviews.llvm.org/D106838




More information about the All-commits mailing list