def do_patch(self, repo: git.GitRepository) -> None: patch = repo.host.workdir / "uboot-selftest.patch" # Git committer and author information in case the user's git # environment is not set up yet repo.host.env("GIT_AUTHOR_NAME", "tbot selftest") repo.host.env("GIT_AUTHOR_EMAIL", "*****@*****.**") repo.host.env("GIT_COMMITTER_NAME", "tbot selftest") repo.host.env("GIT_COMMITTER_EMAIL", "*****@*****.**") repo.am(patch)
def git_increment_commits(repo: git.GitRepository) -> str: counter = repo / "counter.txt" for i in range(0, 24): tbot.log.message(f"Create commit ({i+1:2}/24) ...") repo.host.exec0("echo", str(i), linux.RedirStdout(counter)) repo.add(counter) repo.commit(f"Set counter to {i}", author="tbot Selftest <none@none>") if i == 0: # Take the first commit with counter as good rev = repo.head return rev
def do_patch(self, repo: git.GitRepository) -> None: repo.am(linux.Path(repo.host, "/home/hs/abb/mainlining/socrates/patches/20200508"))
def do_patch(self, repo: git.GitRepository) -> None: patch = repo.host.workdir / "uboot-selftest.patch" repo.am(patch)
def do_patch(self, repo: git.GitRepository) -> None: repo.am(linux.Path(repo.host, "/work/hs/tbot2go/patches/bbb"))
def do_patch(self, repo: git.GitRepository) -> None: repo.am( linux.Path( repo.host, "/home/hs/abb/mainlining/aristainetos/patches/20200515"))