On Nov 27, 2007 5:40 PM, Roan Kattouw <roan.kattouw(a)home.nl> wrote:
Roan Kattouw schreef:
I discovered some plain diff
generation code hiding in a dark corner
[snip]
I'll start building an API module around it, so the functionality should be available
in a couple of days.
I've added diff generation to the prop=revisions module in r27890 [1].
Follow the link to see why this implementation is not yet good enough
and will be improved soon.
Roan Kattouw (Catrope)
[1]
http://svn.wikimedia.org/viewvc/mediawiki/?view=rev&revision=27890
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
So this does really output a diff string? Would it be possible to
return a list of diffs in the following form:
[
{ 'line': 4,
'action': 'removed'
},
{ 'line': 7,
'action': 'modified',
'old': 'test1',
'new': 'test2'
}
]
Or is this not possible with the current diff engines?
Bryan