Exemplo n.º 1
0
 def _read_file(self, fn):
     return tuple(
         utils.read_strings(os.path.join(self._stack.directory, fn)))
Exemplo n.º 2
0
Arquivo: stack.py Projeto: snits/stgit
 def get_hidden(self):
     if not os.path.isfile(self.__hidden_file):
         return []
     return read_strings(self.__hidden_file)
Exemplo n.º 3
0
Arquivo: stack.py Projeto: snits/stgit
 def get_unapplied(self):
     if not os.path.isfile(self.__unapplied_file):
         raise StackException('Branch "%s" not initialised' %
                              self.get_name())
     return read_strings(self.__unapplied_file)
Exemplo n.º 4
0
 def get_hidden(self):
     if not os.path.isfile(self.__hidden_file):
         return []
     return read_strings(self.__hidden_file)
Exemplo n.º 5
0
 def get_unapplied(self):
     if not os.path.isfile(self.__unapplied_file):
         raise StackException('Branch "%s" not initialised' %
                              self.get_name())
     return read_strings(self.__unapplied_file)
Exemplo n.º 6
0
Arquivo: stack.py Projeto: snits/stgit
 def __read_file(self, fn):
     return tuple(utils.read_strings(
         os.path.join(self.__stack.directory, fn)))