We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>CompareRevisionsAddOn (24 Nov 2005, ChengappaCB)
Tags:
create new tag
, view all tags

Question

I installed the CompareRevisionsAddOn. I am able to make it work but was expecting that it would seamlessly replace the existing rdiff. Is there a simple (considering my lack of knowledge of perl etc) way to make it replace rdiff ? My wish is that when I click on the '>' sign displayed at the bottom between the revisions, I should get the output from this add-on, with sidebyside rendition and pattern skin (though I am using dragon skin for the pages)

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2000
Web server: Apache
Perl version:  
Client OS:  
Web Browser: IE
Categories: Add-Ons

-- ChengappaCB - 23 Nov 2005

Answer

Although the CompareRevisionsAddOn was designed in order to replace some parts of the functionality of rdiff, it does not overwrite rdiff by default in any place. This was thaught as a 'security feature' so that nobody could overwrite parts of the original TWiki installation by accident. So you have to make the necessary changes which are appropriate for your particular installation yourself.

Since the links of the '>' signs are hardcoded in the TWiki core, there are generally two ways:

  • Either change this hardcoded link: in /twikiinstallation/lib/TWiki/UI/View.pm change 'rdiff' to 'compare' in the line $revisions = "$revisions | <a href=\"%SCRIPTURLPATH%/rdiff%SCRIPTSUFFIX%/%WEB%/%TOPIC%?rev1=1.$i&rev2=1.$j\">></a>"; (around line 225)
  • Or in /twikiinstallation/bin rename rdiff to rdiff.orig and compare to rdiff
    However, in this case e.g. the links to 'total page history' do not work as expected anymore, so in the templates for your skin you ashould lso replace the corresponding links with 'rdiff.orig'

In both cases you can set the preference variable COMPARERENDERSTYLE to side-by-side, however it is not yet possible to set a default skin which is different from the topic skin. (Maybe in a later version)

-- JChristophFuchs - 24 Nov 2005

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

THANK YOU VERY MUCH ! I modified View.pm and got the result I wanted. I think now I am ready to deply it in my office. I added the render and skin in the same line to get the effect I wanted. Thanks again.

-- ChengappaCB - 24 Nov 2005

 
Topic revision: r3 - 24 Nov 2005 - 17:51:23 - ChengappaCB
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback