Skip to content

Support null base revisions in vcs.get_changed_files#921

Merged
ahal merged 2 commits intotaskcluster:mainfrom
ahal:ahal/push-qqnvmlwqzumo
Mar 16, 2026
Merged

Support null base revisions in vcs.get_changed_files#921
ahal merged 2 commits intotaskcluster:mainfrom
ahal:ahal/push-qqnvmlwqzumo

Conversation

@ahal
Copy link
Collaborator

@ahal ahal commented Mar 16, 2026

Fixes #864

@ahal ahal self-assigned this Mar 16, 2026
@ahal ahal requested a review from a team as a code owner March 16, 2026 19:37
@ahal ahal requested a review from hneiva March 16, 2026 19:37
# When base is NULL_REVISION (e.g new branches on Github), diff
# from the empty tree to show all files present at rev. Use Git's
# well-known empty tree hash.
cmd = ["diff", "4b825dc642cb6eb9a060e54bf8d69288fbee4904", rev]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about this well known empty tree hash.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too tbh, you can thank Claude. I did verify the hash locally as well as did a search. Using it seems to be fairly common from the looks of things.

@ahal ahal merged commit e479436 into taskcluster:main Mar 16, 2026
22 checks passed
@ahal ahal deleted the ahal/push-qqnvmlwqzumo branch March 16, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

000000 in github events

2 participants