Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mdoc] Fixes an issue with member and type deletion.
Specifically, when updating classic and unified assemblies, members that were completely removed from one or both assemblies were not being removed from the XML. This patch updates mdoc's `DeleteMember` method to properly handle deletion in all scenarios (normal, classic, unified). Of course, deletion will still not happen if one of two things is true: - `--delete` is *not* passed into the `mdoc update` call and the member node contains existing documentation. - `--preserve` *is* passed into the `mdoc update` invocation. In both of those cases, the member will not be deleted, and a message stating as such will be written as a warning to the output.
- Loading branch information
1 parent
36e40b0
commit 09b97cb
Showing
9 changed files
with
461 additions
and
26 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
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
Oops, something went wrong.
09b97cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joelmartinez seems like this causes an error when I run
make check
:09b97cb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, it looks like the new targets you added are in the wrong place, they shouldn't be in
check-doc-tools-update
but incheck-doc-tools
:That's likely why the error didn't show up in CI yet.