Commit Graph

8 Commits

Author SHA1 Message Date
Yo Chiang
9e4a1bad45 repo_diff: workspace mustn't be in existing tree
Check that |workspace| is not a sub-directory of an Android tree, so
that we don't `repo init` to a directory outside of |workspace|.

Test: mkdir /tmp/test && cd /tmp/test && repo init [AOSP]
Test: ./repo_diff_android.py  # Should fail to repo-init
Test: rm -rf .repo/ && ./repo_diff_android.py  # Should success
Change-Id: I3e1b94e8e3664cc50ab790aaa7e27b2a8d3feef0
2020-04-23 17:53:47 +08:00
Po-Chien Hsueh
95ca7ccb84 Add option --ignore_error_during_sync
Some old SHA1 might be invalid when we use this tool.
Ignore these projects and keep going on.

Test: run the script against an old release
Change-Id: I5c89911759de6d122052e841eef0b016fa8b1422
2017-09-28 16:55:31 +08:00
Po-Chien Hsueh
f9b8f0cce0 Write results to subfolders
We are using this tools on multiple releases (tags).
Create subfolders using release names, so that results won't be
overwitten.

Test: run the script against multiple releases
Change-Id: I9a94940d630874a5b378431f20a6c1182cf11509
2017-09-28 16:55:31 +08:00
Po-Chien Hsueh
fb4ba49c20 Rename exclusions.txt in the script
The file name has been changed in a previous CL

Test: run the script
Change-Id: I7cc1b183989ae674e14e65321e09c51d5c689ad0
2017-09-28 16:55:31 +08:00
Diego Wilson
7514722144 Add README.md
Add a document explaining how to create a data studio dashboard using
the repo diff tool.

Renamed repo_diff_downstream.py to repo_diff_trees.py.

Renamed exclusions.txt to android_exclusions.txt.
2017-09-27 11:19:58 -07:00
Diego Wilson
190a725b60 repo_diff: sync tip of branches of no tag is given
Not all Android source trees support build IDs and tags.
When no build tag is requested, rather than try to match
the build IDs just sync the branch tips of the upstream
and downstream source trees.

Also select two Android Oreo release candidates
as the default branches. The fact that there are frozen
branches and that the diff is small serve as a good showcase
of the tool.

Change-Id: Ifdefd79fb6b32c6b83e0aee390dd5a435b6a61fc
2017-09-14 15:56:54 -07:00
Diego Wilson
dbb1b8d8ef Rename repo_diff_android.py workspace directories
Renamed the upstream and downstream workspaces to
"upstream" and "downstream", respectively.

Change-Id: I28efd32a4fa4c05410940061c18bb463132d9450
2017-09-11 11:10:22 -07:00
Diego Wilson
61fb65ce4c Add repo_diff tools
These tools help compare android repo workspaces for high level
analysis.

Test: Run python repo_diff/repo_diff_android.py
Change-Id: I645351521c7f61735d3ce65a93569983cd28851c
2017-09-07 17:44:35 -04:00