Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Side by Side Diff: drover.py

Issue 505042: Add eol ignore logic to make webkit merges less problematic. (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698