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

Issue 11366239: Remove more unversioned directories. (Closed)

Created:
8 years, 1 month ago by davidjames
Modified:
8 years, 1 month ago
Reviewers:
Peter Mayo, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel
Base URL:
https://git.chromium.org/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Remove more unversioned directories. Currently, if an unversioned directory is present where we would expect a versioned repository to be, the following error is printed: Can't update/checkout %s if an unversioned directory is present. Delete the directory and try again. If --reset and --delete_unversioned_trees are used, gclient should delete the unversioned directory in this case. This problem can be reproduced using the following recipe: $ rm -rf src/third_party/webrtc/.svn $ gclient sync -nRftD BUG=none TEST=Verify that above error is fixed. Run all smoke tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167942

Patch Set 1 #

Patch Set 2 : Added smoke test. #

Total comments: 2

Patch Set 3 : Use subprocess instead of scm module. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -10 lines) Patch
M gclient_scm.py View 2 chunks +17 lines, -10 lines 3 comments Download
M tests/gclient_smoketest.py View 1 2 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
davidjames
8 years, 1 month ago (2012-11-14 07:06:23 UTC) #1
M-A Ruel
looks great, but it'll require a smoke test.
8 years, 1 month ago (2012-11-14 13:00:53 UTC) #2
davidjames
Updated to add a smoke test. I also ran all smoke tests and precommit checks.
8 years, 1 month ago (2012-11-14 19:52:21 UTC) #3
M-A Ruel
https://codereview.chromium.org/11366239/diff/3001/tests/gclient_smoketest.py File tests/gclient_smoketest.py (right): https://codereview.chromium.org/11366239/diff/3001/tests/gclient_smoketest.py#newcode797 tests/gclient_smoketest.py:797: scm.SVN.Capture(['propset', 'svn:ignore', 'foo', '.'], cwd=third_party) I'd say to just ...
8 years, 1 month ago (2012-11-14 20:59:29 UTC) #4
davidjames
PTAL https://codereview.chromium.org/11366239/diff/3001/tests/gclient_smoketest.py File tests/gclient_smoketest.py (right): https://codereview.chromium.org/11366239/diff/3001/tests/gclient_smoketest.py#newcode797 tests/gclient_smoketest.py:797: scm.SVN.Capture(['propset', 'svn:ignore', 'foo', '.'], cwd=third_party) On 2012/11/14 20:59:29, ...
8 years, 1 month ago (2012-11-14 21:48:22 UTC) #5
Peter Mayo
https://codereview.chromium.org/11366239/diff/7001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/11366239/diff/7001/gclient_scm.py#newcode941 gclient_scm.py:941: gclient_utils.rmtree(self.checkout_path) How does this report errors (e.g. owned by ...
8 years, 1 month ago (2012-11-14 22:30:25 UTC) #6
M-A Ruel
lgtm, I'll let you guys resolve this, I don't mind. https://codereview.chromium.org/11366239/diff/7001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/11366239/diff/7001/gclient_scm.py#newcode941 ...
8 years, 1 month ago (2012-11-14 23:17:31 UTC) #7
Peter Mayo
LGTM - the messaging on failure is not worth blocking for. https://codereview.chromium.org/11366239/diff/7001/gclient_scm.py File gclient_scm.py (right): ...
8 years, 1 month ago (2012-11-15 01:37:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidjames@chromium.org/11366239/7001
8 years, 1 month ago (2012-11-15 17:08:41 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-11-15 17:11:30 UTC) #10
Change committed as 167942

Powered by Google App Engine
This is Rietveld 408576698