Commit 864fbdd5 authored by nsylvain@chromium.org's avatar nsylvain@chromium.org

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
parent 4e9f491f
......@@ -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',
......
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