Signed-off-by: Yann Dirson <ydirson@altern.org>
elif patch_id == 'log':
return series.get_patch(patch).get_log()
if patch == 'base' and patch_id == None:
elif patch_id == 'log':
return series.get_patch(patch).get_log()
if patch == 'base' and patch_id == None:
- return read_string(series.get_base_file())
+ return series.get_base()
except RevParseException:
pass
return git.rev_parse(rev + '^{commit}')
except RevParseException:
pass
return git.rev_parse(rev + '^{commit}')
self.__begin_stack_check()
return self.__base_file
self.__begin_stack_check()
return self.__base_file
+ def get_base(self):
+ return read_string(self.get_base_file())
+
def get_protected(self):
return os.path.isfile(os.path.join(self._dir(), 'protected'))
def get_protected(self):
return os.path.isfile(os.path.join(self._dir(), 'protected'))
"""
try:
# allow cloning of branches not under StGIT control
"""
try:
# allow cloning of branches not under StGIT control
- base = read_string(self.get_base_file())
except:
base = git.get_head()
Series(target_series).init(create_at = base)
except:
base = git.get_head()
Series(target_series).init(create_at = base)