Skip to content
Snippets Groups Projects
Commit 462ec764 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

up

parent ec2e7791
Branches
Tags
2 merge requests!178FIX: #96 Better error output for crawl.py script.,!167Sync Graph
Pipeline #51348 failed
...@@ -286,6 +286,12 @@ class SyncGraph(): ...@@ -286,6 +286,12 @@ class SyncGraph():
Return an equivalent SyncNode. Return an equivalent SyncNode.
Equivalent means that ID, path or identifiable are the same. Equivalent means that ID, path or identifiable are the same.
If a new information was added to the given SyncNode (e.g. the ID), it might be possible
then to identify an equivalent node (i.e. one with the same ID in this example).
There might be more than one equivalent nodes in the graph. However, simply the first that
is found is being returned. (When an equivalent node is found this, the given node is
typically merged, into the one that was found and after the merge the graph is again
checked for equivalent nodes)
Returns None if no equivalent node is found. Returns None if no equivalent node is found.
""" """
...@@ -565,6 +571,9 @@ class SyncGraph(): ...@@ -565,6 +571,9 @@ class SyncGraph():
# - merge # - merge
self._add_identifiables_to_dependend_nodes(target) self._add_identifiables_to_dependend_nodes(target)
if self.get_equivalent(target) is not None:
self._merge_into(target, self.get_equivalent(target))
def _identifiable_is_needed(self, node: SyncNode): def _identifiable_is_needed(self, node: SyncNode):
""" """
This function checks: This function checks:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment