зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1861446 - add some logging output to restore_patch_stack.py r=ng DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D197306
This commit is contained in:
Родитель
e49eaae31e
Коммит
54bdaf5a50
|
@ -35,18 +35,28 @@ def restore_patch_stack(
|
|||
|
||||
# first, refetch the repo (hopefully utilizing the tarfile for speed) so
|
||||
# the patches apply cleanly
|
||||
print("fetch repo")
|
||||
fetch_repo(
|
||||
github_path, clone_protocol, True, os.path.join(state_directory, tar_name)
|
||||
)
|
||||
|
||||
# remove any stale no-op-cherry-pick-msg files in state_directory
|
||||
print("clear no-op-cherry-pick-msg files")
|
||||
run_shell("rm {}/*.no-op-cherry-pick-msg || true".format(state_directory))
|
||||
|
||||
# lookup latest vendored commit from third_party/libwebrtc/README.moz-ff-commit
|
||||
print(
|
||||
"lookup latest vendored commit from third_party/libwebrtc/README.moz-ff-commit"
|
||||
)
|
||||
file = os.path.abspath("third_party/libwebrtc/README.moz-ff-commit")
|
||||
last_vendored_commit = get_last_line(file)
|
||||
|
||||
# checkout the previous vendored commit with proper branch name
|
||||
print(
|
||||
"checkout the previous vendored commit ({}) with proper branch name".format(
|
||||
last_vendored_commit
|
||||
)
|
||||
)
|
||||
cmd = "git checkout -b {} {}".format(github_branch, last_vendored_commit)
|
||||
run_git(cmd, github_path)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче