Changeset 148441 in webkit
- Timestamp:
- Apr 15, 2013, 8:39:40 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r148435 r148441 1 2013-04-15 Zan Dobersek <zandobersek@gmail.com> 2 3 Deprecate land-cowboy in favor of land-cowhand 4 https://bugs.webkit.org/show_bug.cgi?id=104470 5 6 Reviewed by Darin Adler. 7 8 Move the LandCowboy command implementation under the LandCowhand command and deprecate the former. 9 10 * Scripts/webkitpy/tool/commands/download.py: 11 (LandCowhand): 12 (LandCowboy): 13 (LandCowboy._prepare_state): 14 * Scripts/webkitpy/tool/commands/download_unittest.py: 15 (test_land_cowhand): Adjust the unit tests by testing both LandCowhand and LandCowboy, 16 also checking the deprecation message in the output of the latter. 17 1 18 2013-04-15 Jonathan Liu <net147@gmail.com> 2 19 -
trunk/Tools/Scripts/webkitpy/tool/commands/download.py
r148360 r148441 115 115 116 116 117 class LandCowboy(AbstractSequencedCommand): 118 name = "land-cowboy" 117 class LandCowhand(AbstractSequencedCommand): 118 # Gender-blind term for cowboy, see: http://en.wiktionary.org/wiki/cowhand 119 name = "land-cowhand" 119 120 help_text = "Prepares a ChangeLog and lands the current working directory diff." 120 121 steps = [ … … 133 134 134 135 135 class LandCowhand(LandCowboy): 136 # Gender-blind term for cowboy, see: http://en.wiktionary.org/wiki/cowhand 137 name = "land-cowhand" 136 class LandCowboy(LandCowhand): 137 name = "land-cowboy" 138 139 def _prepare_state(self, options, args, tool): 140 _log.warning("land-cowboy is deprecated, use land-cowhand instead.") 141 LandCowhand._prepare_state(self, options, args, tool) 138 142 139 143 -
trunk/Tools/Scripts/webkitpy/tool/commands/download_unittest.py
r144731 r148441 156 156 self.assertEqual(mock_tool.checkout().modified_changelogs.call_count, 1) 157 157 158 def test_land_cow boy(self):158 def test_land_cowhand(self): 159 159 expected_logs = """MOCK run_and_throw_if_fail: ['mock-prepare-ChangeLog', '--email=MOCK email', '--merge-base=None', 'MockFile1'], cwd=/mock-checkout 160 160 MOCK run_and_throw_if_fail: ['mock-check-webkit-style', '--git-commit', 'MOCK git commit', '--diff-files', 'MockFile1', '--filter', '-changelog'], cwd=/mock-checkout … … 181 181 """ 182 182 mock_tool = MockTool(log_executive=True) 183 self.assert_execute_outputs(LandCowhand(), [50000], options=self._default_options(), expected_logs=expected_logs, tool=mock_tool) 184 185 expected_logs = "land-cowboy is deprecated, use land-cowhand instead.\n" + expected_logs 183 186 self.assert_execute_outputs(LandCowboy(), [50000], options=self._default_options(), expected_logs=expected_logs, tool=mock_tool) 184 187
Note:
See TracChangeset
for help on using the changeset viewer.