File Compare Tool

View: New views
5 Messages — Rating Filter:   Alert me  

File Compare Tool

by Arjun Priyananth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
Can anyone tell me what is the tool which wikipedia uses for file compare.
(in the wikipedia website it compares two history) what is that tool please

--
- Arjun Priyananth
_______________________________________________
Wikitech-l mailing list
Wikitech-l@...
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: File Compare Tool

by Roan Kattouw-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/19 Arjun Priyananth <priyananth@...>:
> Hi,
> Can anyone tell me what is the tool which wikipedia uses for file compare.
> (in the wikipedia website it compares two history) what is that tool please
>
It's the standard GNU diff utility, which is available on most
Linux/UNIX systems.

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
Wikitech-l@...
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: File Compare Tool

by Aryeh Gregor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 19, 2009 at 12:47 PM, Arjun Priyananth <priyananth@...> wrote:
> Can anyone tell me what is the tool which wikipedia uses for file compare.
> (in the wikipedia website it compares two history) what is that tool please

It's a PHP difference engine that's part of MediaWiki:

http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/

There's also a C++ version implementing the same algorithm, which is
available as a PHP extension and can be used to drastically reduce CPU
usage:

http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/wikidiff2/

On Mon, Oct 19, 2009 at 1:45 PM, Roan Kattouw <roan.kattouw@...> wrote:
> It's the standard GNU diff utility, which is available on most
> Linux/UNIX systems.

Um, no?  If we used that, we'd fail on every Windows system, and every
Unix system with exec() disabled.  Plus, that's a line-level diff, not
word-level -- you'd have to use wdiff or such.  For undoing, AFAIK we
do rely on diff3, and I suspect undoing just always fails on Windows
(although I might be wrong, never actually tried).

_______________________________________________
Wikitech-l mailing list
Wikitech-l@...
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: File Compare Tool

by Platonides :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Arjun Priyananth wrote:
> Hi,
> Can anyone tell me what is the tool which wikipedia uses for file compare.
> (in the wikipedia website it compares two history) what is that tool please

MediaWiki can use the DifferenceEngine written in php at includes/diff,
or the (faster) wikidiff2 php extension.


_______________________________________________
Wikitech-l mailing list
Wikitech-l@...
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: File Compare Tool

by Platonides :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aryeh Gregor wrote:
> For undoing, AFAIK we
> do rely on diff3, and I suspect undoing just always fails on Windows
> (although I might be wrong, never actually tried).

I think diff3 is used for edit conflict merging, not for undoing (but
that could be also the case).
There is a version of diff3 for Windows. The user would need to install
it. There are also Unix like systems not providing Gnu diff3.


_______________________________________________
Wikitech-l mailing list
Wikitech-l@...
https://lists.wikimedia.org/mailman/listinfo/wikitech-l