Question
Instead of answering whether or not this
should be done, can someone tell me
how this can be done ? I understand the ability should used very infrequently.
The question arises : how to recursively change all revisions of the topic to make a correction to text that has occurred frequently over time.
In my case, I am consolidating webs from an older
CairoRelease into a new 4.x
TWikiSite.
In doing so, I find that one person was registered in both sites, but with a different user name. So as I migrate the webs, I want to recursively change
OldUsername
NewUsername in all revisions of the topics.
Thank you!
Environment
--
KeithHelfrich - 11 May 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Hm, guess
GlobalReplacePlugin should do the trick.
--
FranzJosefSilli - 11 May 2007
the other revisions will be in the topic.txt,v file
I'd suggest vi ,perl, sed, or whatever your drug of choice is for text files
--
SvenDowideit - 11 May 2007
The GlobalReplacePlugin changes a set of topics by creates a new topic revison for each selected topic. That is older revisions are not changed.
TWiki does not allow you to rewrite history (except with repRev and delRev on top revision). You probably can rewrite history by manipulating the .txt and .txt,v files directly. Since you change a user name only you will not affect newlines, so you should be able to do a global search & replace in the .txt and .txt,v files with your favorite programmer's editor.
Let us know how it goes.
--
PeterThoeny - 11 May 2007
I finally got around to this. I used a sed script and globally replaced the old name with the new name (in
RCS ,v files also). Worked perfectly, thanks!
--
KeithHelfrich - 13 Jul 2007