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