• 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.

Item7389: TWiki::Func::getRevisionInfo() may return a different time stamp from %REVINFO%

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 6.0.1

Edit Form Data

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


TWiki::Func::getRevisionInfo() and %REVINFO% are supposed to return the identical time stamp of a topic but they sometimes don't. This is because %REVINFO% uses TWiki::Render::renderRevisionInfo(), which refers to topic metadata, while TWiki::Func::getRevisionInfo() uses TWiki::Store::getRevisionInfo(), which doesn't refer to topic metadata. If TWiki::Store::RcsWrap is in use, TWiki::Store::getRevisionInfo() refers to the time stamp of the RCS file (*,v), which can be different from the topic metadata time stamp since RCS check-in happens at a later stage in topic saving.

To make TWiki::Func::getRevisionInfo() consistent with %REVINFO%, TWiki::Func::getRevisionInfo() needs to call TWiki::Render::renderRevisionInfo() in the same manner as %REVINFO% when possible - when a topic's revision information is obtained. TWiki::Render::renderRevisionInfo() doesn't handle an attachment's information. So attachment revision information has no option but obtained with TWiki::Store::getRevisionInfo().

-- TWiki:Main/HideyoImazu - 2013-11-26

Summary TWiki::Func::getRevisionInfo() may return a different time stamp from %REVINFO%
ReportedBy TWiki:Main.HideyoImazu
Codebase ~twiki4
SVN Range TWiki-6.0.1-trunk, Fri, 22 Nov 2013, build 26627
AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins TWikirev:26631 TWikirev:26632
TargetRelease patch
ReleasedIn 6.0.1
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2018-07-17 - 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