edit diff BUGFIX skip moved lists descendants without op
Fixes
@@ -2990,9 +2990,8 @@ sr_diff_set_getnext(struct ly_set *set, uint32_t *idx, struct lyd_node **node, s
return err_info;
}
- if (((*node)->schema->flags & LYS_KEY) && lysc_is_userordered((*node)->parent->schema) &&
- (lyd_get_meta_value(meta)[0] == 'r')) {
- /* skip keys of list move operations */
+ if ((parent != *node) && lysc_is_userordered(parent->schema) && (lyd_get_meta_value(meta)[0] == 'r')) {
+ /* do not return changes for descendants of moved userord lists without operation */
++(*idx);
continue;
}
