X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/841c7b2a6b015e3ab3331713cf10caf7a4fd0b49..254d99f846f3427d21bc9224cd693bb4806d2d31:/stgit/stack.py diff --git a/stgit/stack.py b/stgit/stack.py index 5237084..947b416 100644 --- a/stgit/stack.py +++ b/stgit/stack.py @@ -92,8 +92,9 @@ def edit_file(series, line, comment, show_patch = True): f.close() # the editor - if config.has_option('stgit', 'editor'): - editor = config.get('stgit', 'editor') + editor = config.get('stgit.editor') + if editor: + pass elif 'EDITOR' in os.environ: editor = os.environ['EDITOR'] else: @@ -406,6 +407,12 @@ class Series(StgitObject): def set_description(self, line): self._set_field('description', line) + def get_parent_remote(self): + return config.get('branch.%s.remote' % self.__name) or 'origin' + + def __set_parent_remote(self, remote): + value = config.set('branch.%s.remote' % self.__name, remote) + def __patch_is_current(self, patch): return patch.get_name() == self.get_current()