mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Iterate PR commits in reverse (oldest->newest) when preparing WPT export. (#34567)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
d7cc988717
commit
bc741bdc0b
1 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,9 @@ class CreateOrUpdateBranchForPRStep(Step):
|
|||
).splitlines()
|
||||
|
||||
filtered_commits = []
|
||||
for sha in commit_shas:
|
||||
# We must iterate the commits in reverse to ensure we apply older changes first,
|
||||
# in case later commits would conflict.
|
||||
for sha in reversed(commit_shas):
|
||||
# Specifying the path here does a few things. First, it excludes any
|
||||
# changes that do not touch WPT files at all. Secondly, when a file is
|
||||
# moved in or out of the WPT directory the filename which is outside the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue