Item8315: CompareRevisionsAddOn should set "diff" context for the compare script

pencil
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Extension
Component: CompareRevisionsAddOn
Branches:
Reported By: Foswiki:Main.GeorgeClark
Waiting For:
Last Change By: KennethLavrsen
Because the compare script is a replacement for the rdiff/rdiffauth scripts, the switchboard entry should set the "diff" context so that plugins can determine what type of processing to perform.

See also Item8314. The DirectedGraphPlugin needs to avoid rendering graphs for the comparison views of topics.

-- GeorgeClark - 30 Oct 2009

Current Switchboard entry

$Foswiki::cfg{SwitchBoard}{compare} = [
          'Foswiki::Contrib::CompareRevisionsAddOn::Compare',
          'compare',
          {
            'comparing' => 1
          }
        ];

--+++ proposed update to latest style

$Foswiki::cfg{SwitchBoard}{compare} = {
    package  => 'Foswiki::Contrib::CompareRevisionsAddOn::Compare',
    function => 'compare',
    context  => { diff => 1,
                  comparing => 1
                },
    };

 

ItemTemplate edit

Summary CompareRevisionsAddOn should set "diff" context for the compare script
ReportedBy Foswiki:Main.GeorgeClark
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component CompareRevisionsAddOn
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:d4bf4661178c
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r5 - 13 Sep 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy