-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] Fix Removal of Non Duplicate elements (#…
…856) Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59473 Commit d079a42 went a bit too far when removing duplicates. It removed *any* duplicate entry that appeared anywhere in the document. What we really wanted to remove full duplicates that exist at the same level as the current element in the document. For example: ```xml <foo> <bar name="bar1"> <bar2 /> </bar> <bar name="bar2"> <bar2 /> </bar> <dupe/> <dupe/> </foo> ``` `<bar2/>` should *not* be removed but one of the `<dupe/>` values should. This commit reworks `RemoveDuplicates()` code to handle the correct logic. It also adds a unit test for this exact senario.
- Loading branch information
1 parent
347fedf
commit 86d2f30
Showing
2 changed files
with
68 additions
and
3 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