コード例 #1
0
        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)
コード例 #2
0
ファイル: git.py プロジェクト: Lusus/tbot
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
コード例 #3
0
ファイル: socrates.py プロジェクト: EmbLux-Kft/tbot-tbot2go
 def do_patch(self, repo: git.GitRepository) -> None:
     repo.am(linux.Path(repo.host, "/home/hs/abb/mainlining/socrates/patches/20200508"))
コード例 #4
0
 def do_patch(self, repo: git.GitRepository) -> None:
     patch = repo.host.workdir / "uboot-selftest.patch"
     repo.am(patch)
コード例 #5
0
 def do_patch(self, repo: git.GitRepository) -> None:
     repo.am(linux.Path(repo.host, "/work/hs/tbot2go/patches/bbb"))
コード例 #6
0
 def do_patch(self, repo: git.GitRepository) -> None:
     repo.am(
         linux.Path(
             repo.host,
             "/home/hs/abb/mainlining/aristainetos/patches/20200515"))