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

Unified Diff: gclient.py

Issue 18006002: Add --upstream option to gclient to scrape git checkouts back to upstream state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: upstream not nuclear Created 7 years, 6 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 | « no previous file | gclient_scm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index d6741fd149e4f95cf0d2008460432d94daeec83f..1f4801b9464af43a0bf9e252cde59053de0e23bf 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1541,6 +1541,8 @@ def CMDsync(parser, args):
parser.add_option('-m', '--manually_grab_svn_rev', action='store_true',
help='Skip svn up whenever possible by requesting '
'actual HEAD revision from the repository')
+ parser.add_option('--upstream', action='store_true',
+ help='Make repo state match upstream branch.')
(options, args) = parser.parse_args(args)
client = GClient.LoadCurrentConfig(options)
@@ -1590,6 +1592,8 @@ def CMDrevert(parser, args):
'references')
parser.add_option('-n', '--nohooks', action='store_true',
help='don\'t run hooks after the revert is complete')
+ parser.add_option('--upstream', action='store_true',
+ help='Make repo state match upstream branch.')
(options, args) = parser.parse_args(args)
# --force is implied.
options.force = True
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698