~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
6281f36
..
947b416
100644
(file)
--- a/
stgit/stack.py
+++ b/
stgit/stack.py
@@
-407,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()