[llvm] f7cb1af - [gn] Make sync script print github URLs

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 07:58:46 PST 2024


Author: Nico Weber
Date: 2024-01-09T10:58:23-05:00
New Revision: f7cb1afa06335edfc043cb5f11f97907e9df844c

URL: https://github.com/llvm/llvm-project/commit/f7cb1afa06335edfc043cb5f11f97907e9df844c
DIFF: https://github.com/llvm/llvm-project/commit/f7cb1afa06335edfc043cb5f11f97907e9df844c.diff

LOG: [gn] Make sync script print github URLs

Phab no longer knows about new revisions.

Added: 
    

Modified: 
    llvm/utils/gn/build/sync_source_lists_from_cmake.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/build/sync_source_lists_from_cmake.py b/llvm/utils/gn/build/sync_source_lists_from_cmake.py
index 6b48ca7de869fc..411f8f762430ea 100755
--- a/llvm/utils/gn/build/sync_source_lists_from_cmake.py
+++ b/llvm/utils/gn/build/sync_source_lists_from_cmake.py
@@ -123,7 +123,8 @@ def by_rev(files, key):
 
     # Output necessary changes grouped by revision.
     for rev in sorted(changes_by_rev):
-        print("[gn build] Port {0} -- https://reviews.llvm.org/rG{0}".format(rev))
+        commit_url = 'https://github.com/llvm/llvm-project/commit/'
+        print("[gn build] Port {0} -- {1}/{0}".format(rev, commit_url))
         for gn_file, data in sorted(changes_by_rev[rev].items()):
             add = data.get("add", [])
             remove = data.get("remove", [])


        


More information about the llvm-commits mailing list