66 lines
1.1 KiB
Plaintext
66 lines
1.1 KiB
Plaintext
head 1.2;
|
|
access;
|
|
symbols;
|
|
locks; strict;
|
|
comment @# @;
|
|
|
|
|
|
1.2
|
|
date 2007.01.16.04.12.02; author TWikiContributor; state Exp;
|
|
branches;
|
|
next 1.1;
|
|
|
|
1.1
|
|
date 2006.02.01.12.01.26; author TWikiContributor; state Exp;
|
|
branches;
|
|
next ;
|
|
|
|
|
|
desc
|
|
@new-topic
|
|
@
|
|
|
|
|
|
1.2
|
|
log
|
|
@buildrelease
|
|
@
|
|
text
|
|
@---+ Package =TWiki::UI::RDiff=
|
|
|
|
UI functions for diffing.
|
|
|
|
|
|
%TOC%
|
|
|
|
---++ StaticMethod *diff* <tt>($session,$web,$topic,$query)</tt>
|
|
|
|
=diff= command handler.
|
|
This method is designed to be
|
|
invoked via the =TWiki::UI::run= method.
|
|
|
|
Renders the differences between version of a TwikiTopic
|
|
| topic | topic that we are showing the differences of |
|
|
| rev1 | the higher revision |
|
|
| rev2 | the lower revision |
|
|
| render | the rendering style {sequential, sidebyside, raw, debug} | (preferences) DIFFRENDERSTYLE, =sequential= |
|
|
| type | {history, diff, last} history diff, version to version, last version to previous | =history= |
|
|
| context | number of lines of context |
|
|
| skin | the skin(s) to use to display the diff |
|
|
TODO:
|
|
* add a {word} render style
|
|
* move the common CGI param handling to one place
|
|
* move defaults somewhere
|
|
|
|
|
|
@
|
|
|
|
|
|
1.1
|
|
log
|
|
@buildrelease
|
|
@
|
|
text
|
|
@d9 1
|
|
@
|