aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xllvm_tools/update_chromeos_llvm_hash.py9
-rwxr-xr-xllvm_tools/update_chromeos_llvm_hash_unittest.py2
2 files changed, 7 insertions, 4 deletions
diff --git a/llvm_tools/update_chromeos_llvm_hash.py b/llvm_tools/update_chromeos_llvm_hash.py
index 510bfa9c..7e6b89c2 100755
--- a/llvm_tools/update_chromeos_llvm_hash.py
+++ b/llvm_tools/update_chromeos_llvm_hash.py
@@ -237,9 +237,10 @@ def GetCommandLineArgs():
"metadata if applicable (default: PATCHES.json inside $FILESDIR)",
)
parser.add_argument(
- "--repo_manifest",
- action="store_true",
- help="Updates the llvm-project revision attribute"
+ "--no_repo_manifest",
+ dest="repo_manifest",
+ action="store_false",
+ help="Skip updating the llvm-project revision attribute"
" in the internal manifest.",
)
parser.add_argument(
@@ -896,7 +897,7 @@ def main():
else:
print("--no-upload passed, did not create a change list")
- if args_output.repo_manifest:
+ if args_output.repo_manifest and not args_output.is_llvm_next:
print(
f"Updating internal manifest to {git_hash} ({svn_version})...",
end="",
diff --git a/llvm_tools/update_chromeos_llvm_hash_unittest.py b/llvm_tools/update_chromeos_llvm_hash_unittest.py
index 7f9bbbe4..dcf6944e 100755
--- a/llvm_tools/update_chromeos_llvm_hash_unittest.py
+++ b/llvm_tools/update_chromeos_llvm_hash_unittest.py
@@ -726,6 +726,7 @@ class UpdateLLVMHashTest(unittest.TestCase):
mock_gethash.return_value = (git_hash, svn_version)
argv = [
"./update_chromeos_llvm_hash_unittest.py",
+ "--no_repo_manifest",
"--llvm_version",
"google3",
]
@@ -834,6 +835,7 @@ class UpdateLLVMHashTest(unittest.TestCase):
failure_mode.value,
"--patch_metadata_file",
"META.json",
+ "--no_repo_manifest",
]
with mock.patch.object(sys, "argv", argv) as mock.argv: