Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitserver: Implement CommitsUniqueToBranch using Commits #62513

Merged

Conversation

eseliger
Copy link
Member

@eseliger eseliger commented May 8, 2024

This PR changes the implementation of CommitsUniqueToBranch to use the existing Commits API.
The range syntax HEAD..branch is equivalent to branch ^HEAD (see git log documentation). Commits also already handles subrepo perms correctly so we don't need to reimplement that in here.

We can then stitch together the expected response from that.

Test plan:

Verified the git command does the same, and the existing unit and E2E tests still pass.

@cla-bot cla-bot bot added the cla-signed label May 8, 2024
@github-actions github-actions bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels May 8, 2024
@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch from 328eaa6 to 52ad1ff Compare May 8, 2024 00:53
@eseliger eseliger marked this pull request as ready for review May 8, 2024 15:44
@eseliger eseliger requested a review from a team May 8, 2024 15:44
Copy link

graphite-app bot commented May 8, 2024

Graphite Automations

"Assign Source to gitserver PRs" took an action on this PR • (05/08/24)

3 assignees were added to this PR based on Geoffrey Gilmore's automation.

@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch from 52ad1ff to f1f50cb Compare May 10, 2024 18:38
@eseliger eseliger force-pushed the es/ls-tree-grpc-2 branch 2 times, most recently from ecd1764 to 6d0b40a Compare May 10, 2024 19:27
@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch from f1f50cb to 2bf43b1 Compare May 10, 2024 19:27
@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch from 2bf43b1 to bba7e86 Compare May 10, 2024 19:29
@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch 2 times, most recently from 5cb7b4d to e0513d4 Compare May 10, 2024 22:28
@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch from e0513d4 to 0301fe4 Compare May 10, 2024 22:29
Base automatically changed from es/ls-tree-grpc-2 to main May 10, 2024 22:58
This PR changes the implementation of CommitsUniqueToBranch to use the existing Commits API.
The range syntax HEAD..branch is equivalent to `branch ^HEAD` (see git log documentation). Commits also already handles subrepo perms correctly so we don't need to reimplement that in here.

We can then stitch together the expected response from that.

Test plan:

Verified the git command does the same, and the existing unit and E2E tests still pass.
@eseliger eseliger force-pushed the es/05-08-gitserverimplementcommitsuniquetobranchusingcommits branch from 0301fe4 to c74a757 Compare May 10, 2024 23:01
Copy link
Member Author

eseliger commented May 10, 2024

Merge activity

  • May 10, 7:02 PM EDT: Graphite rebased this pull request as part of a merge.
  • May 10, 7:07 PM EDT: @eseliger merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants