Tags:
create new tag
view all tags

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 MOVED TO... NewUsername in all revisions of the topics.

Thank you!

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: tons and tons
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Version control

-- KeithHelfrich - 11 May 2007

Answer

ALERT! 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 smile

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

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-07-13 - KeithHelfrich
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.