This question about Topic Markup Language and applications: Answered

Is there a way to reset the revision numbers?

Hi,

Is there a way I can reset the revision numbers back to 1 for all the documents in the wiki?

We have just moved our Quality Manual over to the wiki, and the migration process has increased the revision numbers for the pages. We would like to officially start tracking the revisions now, but wondered if there was a way to reset the revision number back to 1.

The only way I can think of at the moment is to manually copy each page, delete the old one and then rename to that of the old page. This would be quite a long process. Any shortcuts?

Many thanks

Susan

-- SusanManoy - 27 Mar 2013

It depends a bit on which release of Foswiki you are running, as the Store is internally responsible for establishing rev. numbers on topics, and that's been a bit of a moving target.

On 1.1.8, if you remove the "SomeTopic.txt,v" file from the file system, the topic will revert to revision1, and will preserve the Author as the last person to update the topic. The time of last modification date in the %META.TOPICINFO is also preserved. The "first edit" will become revision 2.

Foswiki 1.1.5 also behaves the same until someone makes the first edit to the topic. Foswiki looses track of the initial revision, and the first save is also considered Rev 1. So there is no way to revert the first edit to a topic that does not have a ".txt,v" rcs file, and the first edit appears to be the user that initially created the topic.

-- GeorgeClark - 27 Mar 2013

That's fantastic - thanks for your help.

-- SusanManoy - 27 Mar 2013
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Foswiki 1.1.5
Status Answered
Related Topics
Topic revision: r3 - 27 Mar 2013, SusanManoy
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy