def __init__(self, repository, name):
     super().__init__(repository, name)
     if not stackupgrade.update_to_current_format_version(repository, name):
         raise StackException('%s: branch not initialized' % name)
     state = log.get_stack_state(self.repository, self.state_ref)
     self.patchorder = PatchOrder(state)
     self.patches = Patches(self, state)
Beispiel #2
0
    def __init__(self, name=None):
        """Takes a series name as the parameter.
        """
        PatchSet.__init__(self, name)

        # Update the branch to the latest format version if it is
        # initialized, but don't touch it if it isn't.
        stackupgrade.update_to_current_format_version(libgit.Repository.default(), self.get_name())

        self.__refs_base = "refs/patches/%s" % self.get_name()

        self.__applied_file = os.path.join(self._dir(), "applied")
        self.__unapplied_file = os.path.join(self._dir(), "unapplied")
        self.__hidden_file = os.path.join(self._dir(), "hidden")

        # where this series keeps its patches
        self.__patch_dir = os.path.join(self._dir(), "patches")

        # trash directory
        self.__trash_dir = os.path.join(self._dir(), "trash")
Beispiel #3
0
    def __init__(self, name=None):
        """Takes a series name as the parameter.
        """
        PatchSet.__init__(self, name)

        # Update the branch to the latest format version if it is
        # initialized, but don't touch it if it isn't.
        stackupgrade.update_to_current_format_version(
            libgit.Repository.default(), self.get_name())

        self.__refs_base = 'refs/patches/%s' % self.get_name()

        self.__applied_file = os.path.join(self._dir(), 'applied')
        self.__unapplied_file = os.path.join(self._dir(), 'unapplied')
        self.__hidden_file = os.path.join(self._dir(), 'hidden')

        # where this series keeps its patches
        self.__patch_dir = os.path.join(self._dir(), 'patches')

        # trash directory
        self.__trash_dir = os.path.join(self._dir(), 'trash')
Beispiel #4
0
 def __init__(self, repository, name):
     Branch.__init__(self, repository, name)
     self.patchorder = PatchOrder(self)
     self.patches = Patches(self)
     if not stackupgrade.update_to_current_format_version(repository, name):
         raise StackException('%s: branch not initialized' % name)
Beispiel #5
0
 def __init__(self, repository, name):
     git.Branch.__init__(self, repository, name)
     self.__patchorder = PatchOrder(self)
     self.__patches = Patches(self)
     if not stackupgrade.update_to_current_format_version(repository, name):
         raise StackException('%s: branch not initialized' % name)