From: Yann Dirson Date: Thu, 15 Mar 2007 00:27:20 GMT Subject: [PATCH 10/10] Cleanup parent information on stgit branch deletion. Message-ID: <20070315002720.9094.44659.stgit@gandelf.nowhere.earth> In-Reply-To: <20070315001808.9094.68529.stgit@gandelf.nowhere.earth> Signed-off-by: Yann Dirson --- stgit/stack.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/stgit/stack.py b/stgit/stack.py index c3dab68..c6f338d 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -700,6 +700,13 @@ class Series(StgitObject): remove_file_and_dirs( os.path.join(self.__base_dir, 'refs', 'bases'), self.__name) + # Cleanup parent informations + # FIXME: should one day make use of git-config --section-remove, + # scheduled for 1.5.1 + config.unset('branch.%s.remote' % self.__name) + config.unset('branch.%s.merge' % self.__name) + config.unset('branch.%s.stgit.parentbranch' % self.__name) + def refresh_patch(self, files = None, message = None, edit = False, show_patch = False, cache_update = True,