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

Issue 14134010: Remove gclient_utils.RemoveDirectory(). (Closed)

Created:
7 years, 8 months ago by digit1
Modified:
7 years, 8 months ago
Reviewers:
Isaac (away), M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Remove gclient_utils.RemoveDirectory(). The 'RemoveDirectory()' function in gclient_utils is deprecated and rmtree() should be used instead for consistency. This patch modifies all clients in depot_tools to use rmtree() instead and removes the RemoveDirectory function. + The SVNWrapperTestCase.testRevertNoDotSvn() mocking expectation has been slightly changed. This was required because the test invokes code that used to call gclient_utils.RemoveDirectory() directly, while only gclient_utils.rmtree() was mocked. BUG=NONE R=maruel@chromium.org, ilevy@chromium.org TEST=manually run gclient_utils_test / gclient_smoketest / scm_unittest / gclient_scm_test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=196133

Patch Set 1 #

Patch Set 2 : RemoveDirectory() -> rmtree() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -22 lines) Patch
M gclient.py View 1 1 chunk +1 line, -1 line 0 comments Download
M gclient_scm.py View 1 3 chunks +3 lines, -3 lines 0 comments Download
M gclient_utils.py View 1 1 chunk +0 lines, -3 lines 0 comments Download
M scm.py View 1 3 chunks +4 lines, -4 lines 0 comments Download
M testing_support/trial_dir.py View 1 2 chunks +3 lines, -3 lines 0 comments Download
M tests/gclient_scm_test.py View 1 6 chunks +6 lines, -7 lines 0 comments Download
M tests/gclient_utils_test.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
digit1
7 years, 8 months ago (2013-04-23 20:04:11 UTC) #1
M-A Ruel
Humm, it's exactly the reverse. RemoveDirectory is the deprecated name. For open source code, we ...
7 years, 8 months ago (2013-04-23 20:15:15 UTC) #2
digit
Ah ah :-) Ok, I'll update the patch tomorrow. Thanks for the clarification.
7 years, 8 months ago (2013-04-23 20:45:13 UTC) #3
Isaac (away)
this lgtm but I'm not a depot_tools owner.
7 years, 8 months ago (2013-04-23 21:01:14 UTC) #4
digit1
Patch Set 2 reinstantes rmtree() and gets rid of RemoveDirectory(), please take a look.
7 years, 8 months ago (2013-04-24 08:56:09 UTC) #5
M-A Ruel
lgtm, thanks
7 years, 8 months ago (2013-04-24 12:52:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/digit@chromium.org/14134010/5001
7 years, 8 months ago (2013-04-24 12:58:29 UTC) #7
commit-bot: I haz the power
7 years, 8 months ago (2013-04-24 13:00:19 UTC) #8
Message was sent while issue was closed.
Change committed as 196133

Powered by Google App Engine
This is Rietveld 408576698