Ejemplo n.º 1
0
    def run(self):
        # Stash first, so that we don't accidentally overwrite anything
        gitHandler.prepareBranch()

        fraction = (1.0 / len(self.hashList))

        for hash in self.hashList:
            self.notify(True, hash, fraction)
Ejemplo n.º 2
0
    def run(self):
        # Stash first, so that we don't accidentally overwrite anything
        gitHandler.prepareBranch()

        for hash in self.hashList:
            result = gitHandler.cherryPickCommit(hash, True)

            if result:
                self.notify(True, hash)
            else:
                self.notify(False, hash)

        gitHandler.cleanBranch()
        # Restore the working branch
        gitHandler.restoreBranch()