Repository navigation
Report a project checkout's new branch base as its merge base - #5853
Closed
alexandre-vl wants to merge 1 commit into
Closed
alexandre-vl wants to merge 1 commit into
alexandre-vl wants to merge 1 commit into
Conversation
get-bb#3227 moved the checkout into this plugin and dropped the merge base the server used to record for a new branch, so a thread's diff fell back to the default branch. The host now reports the ref it made the branch from, as the worktree host does, and a restored environment keeps the merge base it had.
Contributor
|
Thanks @alexandre-vl for the PR. This repo approves new contributors before it reviews their PRs, so this PR now closes on its own. That is expected. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ), post a link to this PR, and explain what it changes and why. A maintainer then adds you to the allow list and can reopen the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
#3227 moved the project checkout into its plugin. The merge base the server used to record for a new branch (
resolveProvisionedEnvironmentBranchMetadata) was dropped in the move. The provider reports none, so a thread's diff falls back to the default branch, and a branch made fromdevshowsdev's commits as its own.What changed
mergeBaseBranch. An existing branch, or the checkout used as-is, reports none, as before Environment providers: plugins own where threads run #3227.HOST_DAEMON_PROTOCOL_VERSIONbump. The field is on the plugin's own host RPC, and the daemon runs the host artifact the server sends (plugin-host-manager.ts#L442-L458).How you verified
project-checkout-branches.test.ts: a new branch fromorigin/devreads an empty diff and recordsorigin/dev. At e0f6fda it fails withexpected 'A\tdev.txt\n' to be ''.turbo run typecheckfor the plugin and the integration testsFixes #5850