branch_tmpdir, wgitdir, backport_rev, kernel_head, defconfig=defconfig, env=backport_author_env) continue # update from old to new if last_success in old_data: prev = old_data[last_success] catch_up_from_failure = True else: prev = old_data[tree] catch_up_from_failure = False commits = git.log_commits(prev, kernel_head, tree=kernelobjdir) if len(commits) > MAX_COMMITS: print("too many commits (%d)!" % len(commits)) sys.exit(10) prev_commits = {} p = prev for commit in commits: prev_commits[commit] = p p = commit for commit in commits: print('updating to commit %s' % commit) env = git.commit_env_vars(commit, tree=kernelobjdir) append_shortlog = None if prev_commits[commit] == prev: # committing multiple commits
last_success = '%s-last-success' % tree if old_data[tree] == kernel_head and not last_success in old_data: handle_commit(args, "Update backport tree\n\n", branch, tree, kernelobjdir, branch_tmpdir, wgitdir, backport_rev, kernel_head, defconfig=defconfig, env=backport_author_env) continue # update from old to new if last_success in old_data: prev = old_data[last_success] catch_up_from_failure = True else: prev = old_data[tree] catch_up_from_failure = False commits = git.log_commits(prev, kernel_head, tree=kernelobjdir) if len(commits) > MAX_COMMITS: print("too many commits (%d)!" % len(commits)) sys.exit(10) prev_commits = {} p = prev for commit in commits: prev_commits[commit] = p p = commit for commit in commits: print('updating to commit %s' % commit) env = git.commit_env_vars(commit, tree=kernelobjdir) append_shortlog = None if prev_commits[commit] == prev: # committing multiple commits msg = git.commit_message(commit, kernelobjdir)