| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import optparse | 5 import optparse |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import webbrowser | 10 import webbrowser |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 def mergeRevision(url, revision): | 222 def mergeRevision(url, revision): |
| 223 paths = getBestMergePaths(url, revision) | 223 paths = getBestMergePaths(url, revision) |
| 224 export_map = getBestExportPathsMap(url, revision) | 224 export_map = getBestExportPathsMap(url, revision) |
| 225 | 225 |
| 226 for path in paths: | 226 for path in paths: |
| 227 if export_map.has_key(path): | 227 if export_map.has_key(path): |
| 228 continue | 228 continue |
| 229 command = ('svn merge -N -r ' + str(revision-1) + ":" + str(revision) + " ") | 229 command = ('svn merge -N -r ' + str(revision-1) + ":" + str(revision) + " ") |
| 230 command += " --ignore-ancestry " | 230 command += " --ignore-ancestry " |
| 231 command += " -x ignore-eol-style " |
| 231 command += url + path + "@" + str(revision) + " ." + path | 232 command += url + path + "@" + str(revision) + " ." + path |
| 232 | 233 |
| 233 print command | 234 print command |
| 234 os.system(command) | 235 os.system(command) |
| 235 | 236 |
| 236 def exportRevision(url, revision): | 237 def exportRevision(url, revision): |
| 237 paths = getBestExportPathsMap(url, revision).keys() | 238 paths = getBestExportPathsMap(url, revision).keys() |
| 238 paths.sort() | 239 paths.sort() |
| 239 | 240 |
| 240 for path in paths: | 241 for path in paths: |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 533 |
| 533 if not options.merge and not options.revert: | 534 if not options.merge and not options.revert: |
| 534 option_parser.error("You need at least --merge or --revert") | 535 option_parser.error("You need at least --merge or --revert") |
| 535 sys.exit(1) | 536 sys.exit(1) |
| 536 | 537 |
| 537 if options.merge and not options.branch: | 538 if options.merge and not options.branch: |
| 538 option_parser.error("--merge requires a --branch") | 539 option_parser.error("--merge requires a --branch") |
| 539 sys.exit(1) | 540 sys.exit(1) |
| 540 | 541 |
| 541 sys.exit(main(options, args)) | 542 sys.exit(main(options, args)) |
| OLD | NEW |