This is an archive of the discontinued LLVM Phabricator instance.

revert_checker: guarantee a commit ordering
ClosedPublic

Authored by george.burgess.iv on Jul 26 2021, 5:05 PM.

Details

Summary

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 reverses for most tools (and mental reverses for manual users), just guarantee an oldest-first output ordering for this function.

Diff Detail

Event Timeline

george.burgess.iv requested review of this revision.Jul 26 2021, 5:05 PM
george.burgess.iv created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2021, 5:05 PM
george.burgess.iv edited the summary of this revision. (Show Details)Jul 26 2021, 5:05 PM
tstellar accepted this revision.Jul 27 2021, 2:20 PM

This makes sense to me.

This revision is now accepted and ready to land.Jul 27 2021, 2:20 PM
This revision was landed with ongoing or failed builds.Jul 27 2021, 6:03 PM
This revision was automatically updated to reflect the committed changes.