Lars Aronsson wrote:
> When a new paragraph was inserted, diff doesn't discover that the 
> previous first paragraph is now the second. The diff reports much 
> larger changes than actually happened. Why is that? How can it be 
> fixed?

This is one of those ancient bugs:
https://bugzilla.wikimedia.org/show_bug.cgi?id=5072

> I'm talking about Wikipedia now. Are there different 
> implementations of diff in various instances of MediaWiki?
> How is it implemented? Using UNIX/Linux diff, wdiff, or some other 
> algorithm?

MediaWiki seems to be using its own PHP diff called "DifferenceEngine"
(includes/diff/DifferenceEngine.php, in the same directory there is also
a Diff.php which includes a class "WikiDiff3"). However, it is possible
to user other Diff Engines like GNU Diff/Diff3.

The config file of Wikimedia's setup suggest that Wikipedia is using the
wikidiff2 engine
http://noc.wikimedia.org/conf/highlight.php?file=CommonSettings.php
http://www.mediawiki.org/wiki/Extension:Wikidiff2

Regards,

Church of emacs

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to