Reinstate "Check for nested augmentations" 61/85361/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 22 Oct 2019 20:20:00 +0000 (22:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 23 Oct 2019 12:42:33 +0000 (14:42 +0200)
commit9137e9dfdb45230410b8875f7f24da9a475942d3
tree46f407340db0abebd9214eda98c539d3a44300a0
parentbe62b4e0494ae2b551373760c4da1b03ff19df83
Reinstate "Check for nested augmentations"

This reverts commit 02fa7531709e3c4599bc9ec23dc605a21a711bc1, effectively
re-applying 759e69d85991edb987a760165adb83fa3f2ab67b.

We also add the mechanics needed to walk the copy history backwards, as
needed to understand the copy process.

JIRA: YANGTOOLS-956
Change-Id: I96b3afb30fdcd326ef9b780ff02ccc7f1c94e07e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 801a53da5a59219883bb1141d2e8191c11b65f47)
yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/augment/AbstractAugmentStatementSupport.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT956Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/another-module.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/mainmodule.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/sub-module-1.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT956/sub-module-2.yang [new file with mode: 0644]
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java