~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move identification of parent branch's remote def up into stack class.
[stgit]
/
stgit
/
stack.py
diff --git
a/stgit/stack.py
b/stgit/stack.py
index
5237084
..
947b416
100644
(file)
--- 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
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:
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 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()
def __patch_is_current(self, patch):
return patch.get_name() == self.get_current()