Skip to content

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).

g-raud added 8 commits March 23, 2018 12:36
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