From 337a07433f7aa7b6f3d0bf96696b4bc6092506d2 Mon Sep 17 00:00:00 2001 Message-Id: <337a07433f7aa7b6f3d0bf96696b4bc6092506d2.1746695119.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 20 Aug 2007 22:36:00 +0100 Subject: [PATCH] Rename all config sections of a branch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Organization: Straylight/Edgeware From: Karl Hasselström Just renaming the branch.branchname section doesn't rename the branch.branchname.stgit section -- we have to do that explicitly. This fixes bug 9692. Signed-off-by: Karl Hasselström --- stgit/stack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stgit/stack.py b/stgit/stack.py index dbd7ea4..9c15b3f 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -616,8 +616,8 @@ class Series(PatchSet): self.get_name(), to_stack.get_name()) # Rename the config section - config.rename_section("branch.%s" % self.get_name(), - "branch.%s" % to_name) + for k in ['branch.%s', 'branch.%s.stgit']: + config.rename_section(k % self.get_name(), k % to_name) self.__init__(to_name) -- [mdw]