public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: Yngve Svendsen <yngve.svendsen@clustra.com>
To: Hans-Albert.Schneider@mchp.siemens.de, gnats-devel@sources.redhat.com
Subject: Re: Renaming a category?
Date: Mon, 23 Apr 2001 06:36:00 -0000	[thread overview]
Message-ID: <5.0.0.25.2.20010423152654.05632e38@mail.trd.clustra.com> (raw)
In-Reply-To: <15076.11639.109588.446279@mail-g.mchp.siemens.de>

At 15:26 23.04.2001 +0200, Hans-Albert Schneider wrote:
>What is the preferred way to rename a category?
>
>For GNATS 3.113, I am currently aware of the following procedure
>(assume renaming from "A" to "B"):
>
>1) Create a new category "B".
>2) Edit each report in "A", changing the category to "B".
>3) Remove category "A".
>4) Run gen-index.
>
>(I once tried to just rename the directory from "A" to "B" (and
>the entry in gnats-adm/categories, of course), and found that
>gen-index produced A/17 instead of B/17, because the Category
>field had not been changed.  This was probably with an earlier
>version than 3.113; is gen-index now more clever about this?)
>
>
>Is there an easier way?  Maybe with version 4?
>
>In step 2), do I need to invoke edit-pr and manually edit all
>reports, or can I just run something like
>
>     for each report $n in category A,
>         sed -e "/^>Category:/ s/A/B/"  < A/$n  > B/$n
>         rm A/$n

I don't think there is a better way. I have had to do the same thing myself 
on a few occasions. Automating step 2 should be OK, though. Gnats4 has no 
improvements with regards to this. This might be an idea for a new admin 
tool in a future version.



Yngve Svendsen
IS Engineer
Clustra AS, Trondheim, Norway
yngve.svendsen@clustra.com
Cell.: +47 913 915 02

  reply	other threads:[~2001-04-23  6:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-23  6:26 Hans-Albert Schneider
2001-04-23  6:36 ` Yngve Svendsen [this message]
2001-04-27  5:13 ` Hans-Albert Schneider
2001-04-23  8:39 Wasserman, Sherry
2001-04-23 11:26 ` Rick Macdonald
2001-04-23 12:11   ` Yngve Svendsen
2001-05-20 13:33 ` Milan Zamazal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.0.0.25.2.20010423152654.05632e38@mail.trd.clustra.com \
    --to=yngve.svendsen@clustra.com \
    --cc=Hans-Albert.Schneider@mchp.siemens.de \
    --cc=gnats-devel@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).