From: Karl Hasselström Date: Mon, 20 Aug 2007 21:36:00 +0000 (+0100) Subject: Rename all config sections of a branch X-Git-Tag: v0.14~126 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/337a07433f7aa7b6f3d0bf96696b4bc6092506d2 Rename all config sections of a branch 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 --- 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)