From 48c4160e80a586984431b32b3d34267e708364a4 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Wed, 1 Sep 2010 18:06:25 +0000 Subject: [PATCH] Remove --webkit from trychange.py since it never really worked correctly. TEST=none BUG=none Review URL: http://codereview.chromium.org/3328002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@58200 0039d316-1c4b-4281-b951-d872f2087c98 --- trychange.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/trychange.py b/trychange.py index bed851ea0..d4eede1fa 100755 --- a/trychange.py +++ b/trychange.py @@ -547,25 +547,6 @@ def TryChange(argv, "useful for gclient-style checkouts. Use @rev or " "@branch or @branch1..branch2 to specify the " "revision/branch to diff against.") - # Mostly chromium-specific - try: - def WebKitRevision(options, opt, value, parser): - if not hasattr(options, 'sub_rep'): - options.sub_rep = [] - if parser.rargs and not parser.rargs[0].startswith('-'): - options.sub_rep.append('third_party/WebKit@%s' % parser.rargs.pop(0)) - else: - options.sub_rep.append('third_party/WebKit') - - group.add_option("-W", "--webkit", action="callback", - callback=WebKitRevision, - metavar="BRANCH", - help="Shorthand for -s third_party/WebKit@BRANCH. " - "BRANCH is optional and is the branch the current " - "checkout will be diff'ed against.") - except optparse.OptionError: - # append_const is not supported on 2.4. Too bad. - pass group.add_option("--no_gclient", action="store_true", help="Disable automatic search for gclient checkout.") group.add_option("-E", "--exclude", action="append",