mariarahat / bungeni-editor

Automatically exported from code.google.com/p/bungeni-editor
2 stars 0 forks source link

Add check for overlapping merges #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A check is required to detect overlapping merges 

-- calculate the xpath to each of the inline text:changes in the documetns.
The xpath will have a start and end.
-- store the xpaths with the change-id and doc-id in the db.
-- query the db grouped by similar xpaths.
-- calculate overlapping boundaries between start & end xpaths based on the
index of the parent.

e.g. if the xpath for change-id 33 in doc1 = /text:p[33]/text()[12] -
/text:p[33]/text()[22]

and if the xpath for change-id 91 in doc2 = /text:p[33]/text()[17] -
/text:p[33]/text()[33]

the change-id 91 overlaps with change-id 33 since the starting boundary of
91 is within the boundaries of 33.

Original issue reported on code.google.com by ashok.ha...@gmail.com on 23 Apr 2010 at 7:32