Commit c903d73f authored by agable's avatar agable Committed by Commit bot

Give 'gclient revert' a --merge option to match sync

This is a workaround for the fact that 'gclient revert' calls
'gclient update' with the same `options` object, despite not
actually having the same set of command line options.

R=iannucci@chromium.org, kevcheng@chromium.org
BUG=631220

Review-Url: https://codereview.chromium.org/2184493002
parent cbfbd2c3
...@@ -2154,6 +2154,7 @@ def CMDrevert(parser, args): ...@@ -2154,6 +2154,7 @@ def CMDrevert(parser, args):
options.force = True options.force = True
options.reset = False options.reset = False
options.delete_unversioned_trees = False options.delete_unversioned_trees = False
options.merge = False
client = GClient.LoadCurrentConfig(options) client = GClient.LoadCurrentConfig(options)
if not client: if not client:
raise gclient_utils.Error('client not configured; see \'gclient config\'') raise gclient_utils.Error('client not configured; see \'gclient config\'')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment