schema tree CHANGE provide more control on latest revision selection
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c
index 4675e63..88b90cd 100644
--- a/src/tree_schema_helpers.c
+++ b/src/tree_schema_helpers.c
@@ -213,7 +213,7 @@
 
     /* Try to get submodule from the context, if already present */
     inc->submodule = ly_ctx_get_submodule(ctx, mod->name, inc->name, inc->rev[0] ? inc->rev : NULL);
-    if (!inc->submodule) {
+    if (!inc->submodule || (!inc->rev[0] && inc->submodule->latest_revision != 2)) {
         /* submodule not present in the context, get the input data and parse it */
         if (!(ctx->flags & LY_CTX_PREFER_SEARCHDIRS)) {
 search_clb: