Make all_commits and all_cls into chronological order

PiperOrigin-RevId: 327470626
Change-Id: I36de07a757b3d4fda8c3d53f453bead21f6c8535
This commit is contained in:
Austin Anderson 2020-08-19 11:18:12 -07:00 committed by TensorFlower Gardener
parent 5cf79eda1d
commit bbcacea880

View File

@ -275,8 +275,9 @@ def get_all_tested_commits():
earliest_commit, PRETTY_EARLY, n=1)[0].split("\t")
all_range = "{commit}..HEAD".format(commit=earliest_commit)
all_commits = ",".join(git_pretty(all_range, PRETTY_COMMIT))
all_changelists = ",".join(git_pretty(all_range, PRETTY_CL))
# Reversed: convert to chronological
all_commits = ",".join(reversed(git_pretty(all_range, PRETTY_COMMIT)))
all_changelists = ",".join(reversed(git_pretty(all_range, PRETTY_CL)))
return [
earliest_commit, early_cl, early_author_date, early_commit_date,