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)
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()