Skip to content

detect conflicted merges from elsewhere and show flow - #6067

Merged
shiftkey merged 16 commits into
masterfrom
auto-open-conflicted-merge-flow
Nov 6, 2018
Merged

shiftkey merged 16 commits into
masterfrom
auto-open-conflicted-merge-flow

Conversation

@outofambit

@outofambit outofambit commented Nov 1, 2018 •

Copy link
Copy Markdown
Contributor

Overview

Closes #6045

detect merge conflict flow

Description

  • detect when conflicted merge is in progress
  • get "ours" branch name
  • get "theirs" branch name
  • handle undefined theirs banch case

Release notes

Notes: no-notes

@outofambit outofambit changed the title figure out when outside merge occurred detect conflicted merges from elsewhere and show flow Nov 1, 2018
@outofambit

Copy link
Copy Markdown
Contributor Author

git branch --points-at=MERGE_HEAD works but only if one branch has the same tip, otherwise we get multiple results

@outofambit outofambit added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 5, 2018
@outofambit
outofambit requested a review from a team November 5, 2018 05:49
@shiftkey shiftkey self-assigned this Nov 5, 2018
Comment thread app/src/lib/git/branch.ts Resolved
Comment thread app/src/lib/stores/app-store.ts Resolved
Comment thread app/src/lib/stores/app-store.ts Resolved
@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey 🍏

Comment thread app/src/lib/stores/app-store.ts Resolved
Comment thread app/src/lib/stores/app-store.ts Resolved
Comment thread app/src/lib/stores/app-store.ts Resolved
@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey 🍏🍏

off by one error!
@shiftkey

shiftkey commented Nov 6, 2018

Copy link
Copy Markdown
Member

@outofambit are you also able to merge master into here so that you're using working with the latest changes? I was testing this flow and thought that something in here had regressed #6059 - turns out the fix wasn't in this branch...

@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey updated!

shiftkey
shiftkey previously approved these changes Nov 6, 2018

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just one question about feature-flagging, everything else is 💎

Comment thread app/src/lib/stores/app-store.ts Resolved
@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey, if you're okay with this, could we merge in the next couple hours? its blocking #6096, which I'd like to get in for the beta in 2 days.

@shiftkey

shiftkey commented Nov 6, 2018

Copy link
Copy Markdown
Member

@outofambit it's not clear to me how these two PRs are related - can you elaborate?

@outofambit

Copy link
Copy Markdown
Contributor Author

@shiftkey this PR refactors the Popup type for the merge conflict and abort merge dialogs, which #6096 needs to account for since it relies on those types. (Specifically, there is work to do to handle the possibly undefined theirBranch and how that affects the merge success banner for this case.)

@shiftkey shiftkey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As this is a blocker on #6096 and we have a beta planned for Thursday I'm going to let this sit for 2hrs for any last-minute 👀 before merging it at ~11am PST

@shiftkey
shiftkey merged commit 471cb4b into master Nov 6, 2018
@shiftkey
shiftkey deleted the auto-open-conflicted-merge-flow branch November 6, 2018 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants