
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Package =TWiki::Store::RcsFileThis class is PACKAGE PRIVATE to Store, and should never be | ||||||||
| Changed: | ||||||||
| < < | used from anywhere else. Base class of implementations of stores | |||||||
| > > | used from anywhere else. It is the base class of implementations of stores | |||||||
| that manipulate RCS format files. The general contract of the methods on this class and its subclasses | ||||||||
| Line: 20 to 20 | ||||||||
| Added: | ||||||||
| > > | ObjectMethod finish ()Break circular references. | |||||||
ObjectMethod *getRevisionInfo ($version) -> ($rev,$date,$user,$comment)
| ||||||||
| Line: 43 to 48 | ||||||||
| Deleted: | ||||||||
| < < | ObjectMethod readMetaData ($name) -> $textGet a meta-data block for this web | |||||||
ObjectMethod getWorkArea ($key) -> $directorypathGets a private directory uniquely identified by $key. The directory is intended as a work area for plugins. The standard is a directory named the same as "key" under | ||||||||
| Changed: | ||||||||
| < < | $TWiki::cfg{RCS}{WorkAreaDir}
ObjectMethod saveMetaData ($web,$name) -> $textWrite a named meta-data string. If web is given the meta-data is stored alongside a web. | |||||||
| > > | $TWiki::cfg{WorkingDir}/work_areas | |||||||
| Line: 103 to 95 | ||||||||
| Added: | ||||||||
| > > | ObjectMethod *searchInWebMetaData ($query,\@topics) -> \%matchesSearch for a meta-data expression in the content of a web.$query must be a TWiki::Query object.
Returns a reference to a hash that maps the names of topics that all matched
to the result of the query expression (e.g. if the query expression is
'TOPICPARENT.name' then you will get back a hash that maps topic names
to their parent.
SMELL: this is really inefficient!
| |||||||
ObjectMethod moveWeb ($newWeb)Move a web. | ||||||||
| Line: 130 to 135 | ||||||||
| Changed: | ||||||||
| < < | ObjectMethod *restoreLatestRevision ($wikiname) | |||||||
| > > | ObjectMethod *restoreLatestRevision ($user) | |||||||
| Restore the plaintext file from the revision at the head. | ||||||||
| Line: 323 to 328 | ||||||||
| Deleted: | ||||||||
| < < | sub _constructAttributesForAutoAttached as long as stat is defined, return an emulated set of attributes for that attachment. | |||||||
ObjectMethod *getAttachmentList ($web,$topic)returns {} of filename => { key => value, key2 => value } for any given web, topic | ||||||||
| Line: 339 to 340 | ||||||||
| Generate string representation for debugging | ||||||||
| Added: | ||||||||
| > > |
ObjectMethod recordChange ($user,$rev,$more)Record that the file changedObjectMethod eachChange ($since) -> $iteratorReturn iterator over changes - see Store for details | |||||||
| Line: 191 to 206 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | ObjectMethod *removeSpuriousLeases ($web)Remove leases that are not related to a topic. These can get left behind in some store implementations when a topic is created, but never saved. | |||||||
ObjectMethod getStream () -> \*STREAMReturn a text stream that will supply the text stored in the topic. | ||||||||
| Line: 121 to 121 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Changed: | ||||||||
| < < | ObjectMethod *restoreLatestRevision () | |||||||
| > > | ObjectMethod *restoreLatestRevision ($wikiname) | |||||||
| Restore the plaintext file from the revision at the head. | ||||||||
| Line: 299 to 302 | ||||||||
| sub _constructAttributesForAutoAttached as long as stat is defined, return an emulated set of attributes for that attachment. | ||||||||
| Added: | ||||||||
| > > | ||||||||
ObjectMethod *getAttachmentList ($web,$topic)returns {} of filename => { key => value, key2 => value } for any given web, topic Ignores files starting with _ or ending with ,v | ||||||||
| Added: | ||||||||
| > > |
ObjectMethod stringify ()Generate string representation for debugging | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | Package =TWiki::Store::RcsFileThis class is PACKAGE PRIVATE to Store, and should never be used from anywhere else. Base class of implementations of stores that manipulate RCS format files. The general contract of the methods on this class and its subclasses calls for errors to be signalled by Error::Simple exceptions. Refer to Store.pm for models of usage.On this page:
ClassMethod new ($session,$web,$topic,$attachment)Constructor. There is one object per stored file. Note that $web, $topic and $attachment must be untainted!ObjectMethod *getRevisionInfo ($version) -> ($rev,$date,$user,$comment)
ObjectMethod *getLatestRevision () -> $textGet the text of the most recent revisionObjectMethod *getLatestRevisionTime () -> $textGet the time of the most recent revisionObjectMethod readMetaData ($name) -> $textGet a meta-data block for this webObjectMethod getWorkArea ($key) -> $directorypathGets a private directory uniquely identified by $key. The directory is intended as a work area for plugins. The standard is a directory named the same as "key" under $TWiki::cfg{RCS}{WorkAreaDir}ObjectMethod saveMetaData ($web,$name) -> $textWrite a named meta-data string. If web is given the meta-data is stored alongside a web. ObjectMethod getTopicNames () -> @topics
Get list of all topics in a web | |||||||