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

Side by Side Diff: dartium_tools/update_patched_files.py

Issue 239993009: Revert accidental dartium code push (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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 | « dartium_tools/update_deps.py ('k') | dartium_tools/update_version.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 #
3 # Copyright 2012 Google Inc. All Rights Reserved.
4
5 import overrides_database
6 import shutil
7 import subprocess
8 import sys
9
10
11 def svn_update(path, rev):
12 subprocess.call(['svn', 'up', '-r', str(rev), path])
13
14
15 def update_overridden_files(old_rev, new_rev):
16 assert old_rev < new_rev
17 for override in overrides_database.OVERRIDDEN_FILES:
18 patched = override['modified']
19 orig = override['original']
20 svn_update(orig, old_rev)
21 shutil.copyfile(patched, orig)
22 svn_update(orig, new_rev)
23 shutil.copyfile(orig, patched)
24
25
26 if __name__ == '__main__':
27 update_overridden_files(int(sys.argv[1]), int(sys.argv[2]))
OLDNEW
« no previous file with comments | « dartium_tools/update_deps.py ('k') | dartium_tools/update_version.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698