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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm_mock.py

Issue 1379493002: Use chromium revision instead of blink svn revision when rebaselining layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove multiple repo support Created 5 years, 2 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
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return True 69 return True
70 70
71 def exists(self, path): 71 def exists(self, path):
72 # TestRealMain.test_real_main (and several other rebaseline tests) are s ensitive to this return value. 72 # TestRealMain.test_real_main (and several other rebaseline tests) are s ensitive to this return value.
73 # We should make those tests more robust, but for now we just return Tru e always (since no test needs otherwise). 73 # We should make those tests more robust, but for now we just return Tru e always (since no test needs otherwise).
74 return True 74 return True
75 75
76 def absolute_path(self, *comps): 76 def absolute_path(self, *comps):
77 return self._filesystem.join(self.checkout_root, *comps) 77 return self._filesystem.join(self.checkout_root, *comps)
78 78
79 def svn_revision(self, path): 79 def commit_position(self, path):
80 return '5678' 80 return '5678'
81 81
82 def svn_revision_from_git_commit(self, git_commit): 82 def commit_position_from_git_commit(self, git_commit):
83 if git_commit == '6469e754a1': 83 if git_commit == '6469e754a1':
84 return 1234 84 return 1234
85 if git_commit == '624c3081c0': 85 if git_commit == '624c3081c0':
86 return 5678 86 return 5678
87 if git_commit == '624caaaaaa': 87 if git_commit == '624caaaaaa':
88 return 10000 88 return 10000
89 return None 89 return None
90 90
91 def timestamp_of_revision(self, path, revision): 91 def timestamp_of_revision(self, path, revision):
92 return '2013-02-01 08:48:05 +0000' 92 return '2013-02-01 08:48:05 +0000'
(...skipping 10 matching lines...) Expand all
103 for path in paths: 103 for path in paths:
104 if self._filesystem.exists(path): 104 if self._filesystem.exists(path):
105 self._filesystem.remove(path) 105 self._filesystem.remove(path)
106 106
107 def move(self, origin, destination): 107 def move(self, origin, destination):
108 if self._filesystem: 108 if self._filesystem:
109 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination)) 109 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination))
110 110
111 def changed_files(self): 111 def changed_files(self):
112 return [] 112 return []
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698