コード例 #1
0
ファイル: deploy.py プロジェクト: scottferg/Git-Deploy
    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)
コード例 #2
0
ファイル: deploy.py プロジェクト: wmbest2/Git-Deploy
    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()