HomeClusterLabs Projects

Refactor: libcrmcommon: Don't set XML private flags without tracking

Description

Refactor: libcrmcommon: Don't set XML private flags without tracking

Previously, we marked newly a created element, attribute, or comment as
"dirty and created" and marked all of its parents as dirty, regardless
of whether tracking was enabled for the document. Similarly, we marked a
newly created document as "dirty and created," even though tracking
could not have been enabled for it.

This didn't make sense, and it often required committing changes that
were made without tracking enabled, to ensure that those changes didn't
show up in a patchset after tracking was enabled later.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 13 2025, 3:11 PM
Parents
rP4c77fcb8af21: API: libcrmcommon: Deprecate xml_track_changes()
Branches
Unknown
Tags
Unknown