Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: mojo/tools/rev_sdk.py

Issue 1157573002: Revert "Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/network/http_server_apptest.cc ('k') | net/proxy/proxy_resolver_mojo_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/rev_sdk.py
diff --git a/mojo/tools/rev_sdk.py b/mojo/tools/rev_sdk.py
index 06241ee2548bc7e7d5466ee9fd28f303927bc099..15812c5a7464a4678111fa66c9675d0905d7c62c 100755
--- a/mojo/tools/rev_sdk.py
+++ b/mojo/tools/rev_sdk.py
@@ -23,7 +23,7 @@ sdk_dirs_to_clone = [
sdk_dirs_to_not_clone = [
"mojo/public/cpp/application",
"mojo/public/interfaces/application",
- "mojo/public/java/application",
+ "third_party/mojo/src/mojo/public/java/application",
]
# Individual files to preserve within the target repository during roll. These
@@ -43,9 +43,8 @@ for sdk_dir in sdk_dirs_to_clone:
sdk_dir_in_chromium = os.path.join(sdk_prefix_in_chromium, sdk_dir)
dirs_to_clone[sdk_dir] = sdk_dir_in_chromium
-def rev(source_dir, chromium_dir, mojo_revision):
- src_commit = system(["git", "rev-parse", mojo_revision],
- cwd=source_dir).strip()
+def rev(source_dir, chromium_dir):
+ src_commit = system(["git", "show-ref", "HEAD", "-s"], cwd=source_dir).strip()
for input_dir, dest_dir in dirs_to_clone.iteritems():
if os.path.exists(os.path.join(chromium_dir, dest_dir)):
@@ -90,15 +89,8 @@ def rev(source_dir, chromium_dir, mojo_revision):
commit("Update mojo sdk to rev " + src_commit, cwd=chromium_dir)
-if len(sys.argv) < 2:
- print "usage: rev_sdk.py <mojo source dir> [<mojo revision>]"
+if len(sys.argv) != 2:
+ print "usage: rev_sdk.py <mojo source dir>"
sys.exit(1)
-# Allow override of the roll revision.
-if len(sys.argv) == 3:
- mojo_revision = sys.argv[2]
-else:
- mojo_revision = 'origin/HEAD'
-
-rev(sys.argv[1], chromium_root_dir, mojo_revision)
-
+rev(sys.argv[1], chromium_root_dir)
« no previous file with comments | « mojo/services/network/http_server_apptest.cc ('k') | net/proxy/proxy_resolver_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698