We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2b27d commit 9def85fCopy full SHA for 9def85f
llvm/utils/revert_checker.py
@@ -283,17 +283,12 @@ def _main() -> None:
283
seen_reverts.add(revert)
284
all_reverts.append(revert)
285
286
+ sha_prefix = (
287
+ "https://github.com/llvm/llvm-project/commit/" if opts.review_url else ""
288
+ )
289
for revert in all_reverts:
- sha_fmt = (
- f"https://reviews.llvm.org/rG{revert.sha}"
- if opts.review_url
290
- else revert.sha
291
- )
292
- reverted_sha_fmt = (
293
- f"https://reviews.llvm.org/rG{revert.reverted_sha}"
294
295
- else revert.reverted_sha
296
+ sha_fmt = f"{sha_prefix}{revert.sha}"
+ reverted_sha_fmt = f"{sha_prefix}{revert.reverted_sha}"
297
print(f"{sha_fmt} claims to revert {reverted_sha_fmt}")
298
299
0 commit comments