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

UI: merge selection requires merge command instead of preference #185

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

g-raud
Copy link
Contributor

@g-raud g-raud commented Mar 25, 2018

This change depends on PR #184 and is part of a solution to the issue #183
("UI: cannot forcibly merge path from UI if merge option not already set").
Together with assoc patterns (PR #178) and with its dependency (PR #184) that
makes the mergeability be verified by the UI it fixes the issue (implementing
solution 2. to the sub-issue 1.).

It prevents paths not having merge commands from being selected for merging
(either by default or in the UI) but do not require the merge preference to be
set anymore.

It can be merged wihtout/before PR #178 and its dependencies to simply make
the verification of mergeability stricter (as without del/assoc patterns when
a command is provided, the merge preference is also set).

This is to avoid having a default conflict resolution that is certain to
fail.

Still require that the paths have the preference merge set.
Globals.shouldMerge: this predicate now decides only which (conflicting)
paths should be merged by default.

Files, Uitext, Uigtk2, Uimacbridge, Uimacbridgenew: call
Globals.mayMerge in place of Globals.shouldMerge to enable to
interactively choose to merge any path than provide a merge command.

Uicommon.cannotMergeMsg: adapt the error message to the new behaviour.
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.

1 participant