• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6352: Cannot use CALC and REVINFO to get info of a previous rev

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension SpreadSheetPlugin Normal Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Filed as a Support request. No response o I guess this isn't currently possible. But it should be possible.

I'm trying to use SpreadSheet Plugin to get REVINFO for a prior revision of a topic.

I can do this:

  %CALC{"$SET(revC, %REVINFO{topic="FooTopic" "$rev"}%) }%

  %CALC{"$SET(twoback, $EVAL($GET(revC)-2)) }%

  %REVINFO{rev="%CALC{$GET(twoback)}%" topic="FooTopic"}%

However, I cannot do this:

   %CALC{$SET(ModDate, %REVINFO{rev="$GET(twoback)" "$epoch"}% )}%

I've tried various permutations.

I don't just want to see the revinfo for the previous rev. I want to stick it into a variable. (This is part of a test to determine if content is older than a given date.)

This should work.

-- TWiki:Main/VickiBrown - 22 Oct 2009

CALC is not evaluated with the standard left-right inside-out order. The evaluation order works as expected if you use CALCULATE instead. Setting this to "closed".

-- TWiki:Main.PeterThoeny - 2013-10-18

Summary Cannot use CALC and REVINFO to get info of a previous rev
ReportedBy TWiki:Main.VickiBrown
Codebase ~twiki4
SVN Range TWiki-5.0.0, Sun, 27 Sep 2009, build 18153
AppliesTo Extension
Component SpreadSheetPlugin
Priority Normal
CurrentState Closed


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2013-10-18 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback