-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBS-12550: Don't enter useless annotation edit in merge
The entity merge system was trying to merge the annotations in entities, but if all entities had the same annotation already, it still tried to enter an edit, triggering the NoChanges exception added by MBS-12556. There seems to be no reason why we would even try to enter an edit in this case, since the annotation won't change. I'd also argue it's misleading to claim it's the "Result of $type merge" since it's just the same as before. This just checks the current annotation in the target entity, and skips entering an edit if the annotation resulting from the merge process would have the same text.
- Loading branch information
1 parent
61e8eb3
commit a1a42ab
Showing
2 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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