mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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 Review URL: https://chromiumcodereview.appspot.com/14134010 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@196133 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -158,9 +158,6 @@ def rmtree(path):
|
||||
|
||||
remove(os.rmdir, path)
|
||||
|
||||
# TODO(maruel): Rename the references.
|
||||
RemoveDirectory = rmtree
|
||||
|
||||
|
||||
def safe_makedirs(tree):
|
||||
"""Creates the directory in a safe manner.
|
||||
|
||||
Reference in New Issue
Block a user