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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-11-24 - ChengappaCB
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.