Fix merge-to-branch python port.

This fixes a forgotten parameter when calling the script's toplevel method and adds the same usage message as in the bash script.

BUG=
TBR=ulan@chromium.org

Review URL: https://codereview.chromium.org/164373015

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19450 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 901dee8d
......@@ -355,6 +355,10 @@ def RunMergeToBranch(config,
def BuildOptions():
result = optparse.OptionParser()
result.set_usage("""%prog [OPTIONS]... [BRANCH] [REVISION]...
Performs the necessary steps to merge revisions from bleeding_edge
to other branches, including trunk.""")
result.add_option("-f",
help="Delete sentinel file.",
default=False, action="store_true")
......@@ -396,7 +400,7 @@ def Main():
if not ProcessOptions(options, args):
parser.print_help()
return 1
RunMergeToBranch(CONFIG, MergeToBranchOptions(options))
RunMergeToBranch(CONFIG, MergeToBranchOptions(options, args))
if __name__ == "__main__":
sys.exit(Main())
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