Add a new --workdir param to specify the subdir to use

to do the revert.

Review URL: http://codereview.chromium.org/328009

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@29936 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
nsylvain@chromium.org 16 years ago
parent 4e9f491f8d
commit 864fbdd5c6

@ -366,7 +366,7 @@ def main(options, args):
else:
url = TRUNK_URL
working = DEFAULT_WORKING
working = options.workdir or DEFAULT_WORKING
command = 'svn log ' + url + " -r "+str(revision) + " -v"
os.system(command)
@ -455,6 +455,8 @@ if __name__ == "__main__":
help='Branch to revert or merge from')
option_parser.add_option('-r', '--revert', type="int",
help='Revision to revert')
option_parser.add_option('-w', '--workdir',
help='subdir to use for the revert')
option_parser.add_option('', '--revertbot', action='store_true',
default=False)
option_parser.add_option('', '--revertbot-commit', action='store_true',

Loading…
Cancel
Save