[llvm] 9d3f4a4 - find_interesting_reviews.py: adapt to github monorepo
Kristof Beyls via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 05:37:10 PST 2019
Author: Kristof Beyls
Date: 2019-12-16T13:36:41Z
New Revision: 9d3f4a4971033ba8045c4cf67c7ceaf8b2d8d8f3
URL: https://github.com/llvm/llvm-project/commit/9d3f4a4971033ba8045c4cf67c7ceaf8b2d8d8f3
DIFF: https://github.com/llvm/llvm-project/commit/9d3f4a4971033ba8045c4cf67c7ceaf8b2d8d8f3.diff
LOG: find_interesting_reviews.py: adapt to github monorepo
Added:
Modified:
llvm/utils/Reviewing/find_interesting_reviews.py
Removed:
################################################################################
diff --git a/llvm/utils/Reviewing/find_interesting_reviews.py b/llvm/utils/Reviewing/find_interesting_reviews.py
index a3b3ee6a7377..b1664f5044e4 100644
--- a/llvm/utils/Reviewing/find_interesting_reviews.py
+++ b/llvm/utils/Reviewing/find_interesting_reviews.py
@@ -21,7 +21,8 @@
# $ . ./venv/bin/activate
# $ pip install Phabricator
-GIT_REPO_METADATA = (("llvm", "https://llvm.org/git/llvm.git"), )
+GIT_REPO_METADATA = (("llvm-monorepo", "https://github.com/llvm/llvm-project"),
+ )
# The below PhabXXX classes represent objects as modelled by Phabricator.
# The classes can be serialized to disk, to try and make sure that we don't
@@ -481,7 +482,8 @@ def find_reviewers_for_
diff _heuristic(
diff ):
reviewers2nr_files_touched = {}
# Assume last revision before
diff was modified is the revision the
diff
# applies to.
- git_repo = "git_repos/llvm"
+ assert len(GIT_REPO_METADATA) == 1
+ git_repo = os.path.join("git_repos", GIT_REPO_METADATA[0][0])
cmd = 'git -C {0} rev-list -n 1 --before="{1}" master'.format(
git_repo,
datetime.fromtimestamp(
More information about the llvm-commits
mailing list