Retain matched resolution evidence in history
This commit is contained in:
@@ -16,6 +16,17 @@ type resolutionCorrespondence struct {
|
||||
collections map[string]collectionCorrespondence
|
||||
}
|
||||
|
||||
func (c resolutionCorrespondence) clone() resolutionCorrespondence {
|
||||
result := resolutionCorrespondence{collections: make(map[string]collectionCorrespondence, len(c.collections))}
|
||||
for key, collection := range c.collections {
|
||||
collection.path = collection.path.clone()
|
||||
collection.entryToFinal = append([]int(nil), collection.entryToFinal...)
|
||||
collection.finalToEntry = append([]int(nil), collection.finalToEntry...)
|
||||
result.collections[key] = collection
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func buildResolutionCorrespondence(entry, final *document.Node, policy sequencePolicy) resolutionCorrespondence {
|
||||
result := resolutionCorrespondence{collections: make(map[string]collectionCorrespondence)}
|
||||
var indexes mappingIndex
|
||||
|
||||
Reference in New Issue
Block a user