From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans-Albert Schneider To: gnats-devel@sources.redhat.com Subject: Re: Renaming a category? Date: Fri, 27 Apr 2001 05:13:00 -0000 Message-id: <15081.25213.691672.838325@mail-g.mchp.siemens.de> References: <15076.11639.109588.446279@mail-g.mchp.siemens.de> X-SW-Source: 2001-q2/msg00054.html It's time for a summary: >>>>> "HAS" == Hans-Albert Schneider writes: HAS> What is the preferred way to rename a category? For HAS> GNATS 3.113, I am currently aware of the following HAS> procedure (assume renaming from "A" to "B"): HAS> 1) Create a new category "B". HAS> 2) Edit each report in "A", changing the category to "B". HAS> 3) Remove category "A". HAS> 4) Run gen-index. [...] HAS> Is there an easier way? Maybe with version 4? Summary: There is currently no other way, neither in version 3.x nor in version 4. HAS> In step 2), do I need to invoke edit-pr and manually HAS> edit all reports, or can I just run something like [simple minded for-loop with sed removed] Summary: To take care of locking, edit-pr or pr-edit --lock should be used. Otherwise, automating is OK. I already had the idea to use edit-pr with the EDITOR variable set to something like the sed command. I meanwhile have written a shell script to do this. (This also was an exercise for me to write a script that tries to be a bit security conscious, so its purpose was not just to re-invent the wheel.) Tools: There is a PERL script by Sherry Wasserman. There is also my script now. :-) Thanks for replying to: Yngve Svendsen Sherry Wasserman Rick Macdonald Hans-Albert -- Hans-Albert Schneider Siemens AG phone: (+49) 89 636 45445 Corporate Technology fax: (+49) 89 636 42284 Munich, Germany -- To get my public PGP key, send me a mail with subject "send key" --