Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

File Compare Tool

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


priyananth at gmail

Oct 19, 2009, 9:47 AM

Post #1 of 5 (951 views)
Permalink
File Compare Tool

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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at gmail

Oct 19, 2009, 10:45 AM

Post #2 of 5 (891 views)
Permalink
Re: File Compare Tool [In reply to]

2009/10/19 Arjun Priyananth <priyananth [at] gmail>:
> 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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

Oct 19, 2009, 12:59 PM

Post #3 of 5 (889 views)
Permalink
Re: File Compare Tool [In reply to]

On Mon, Oct 19, 2009 at 12:47 PM, Arjun Priyananth <priyananth [at] gmail> 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 [at] gmail> 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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Platonides at gmail

Oct 19, 2009, 1:01 PM

Post #4 of 5 (891 views)
Permalink
Re: File Compare Tool [In reply to]

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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Platonides at gmail

Oct 19, 2009, 2:21 PM

Post #5 of 5 (892 views)
Permalink
Re: File Compare Tool [In reply to]

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 [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.