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

Issue 9348054: If --force is specified when updating, remove unversioned directories (Closed)

Created:
8 years, 10 months ago by Steve Block
Modified:
8 years, 10 months ago
CC:
chromium-reviews, Dirk Pranke, M-A Ruel, Peter Mayo, davidjames, sosa, Chris Masone, Ian Vollick
Visibility:
Public.

Description

If both -f and -D are specified when updating, remove all untracked directories This is required to avoid the need to clobber the bots when moving a directory to deps/. Currently, the directory in question is likely to remain in the working copy, despite having been removed, due to the presence of untracked files. This causes the checkout from deps/ to fail. With this change, when both --force and --delete_unversioned_trees are specified, the the directory in question will be removed from the working copy, thereby allowing the copy in deps/ to be checked out correctly. Note that untracked directories which are explicitly ignored (ie in .gitignore or svn:ignore) will not be removed. BUG=112887, chromium-os:20759 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121986

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Patch Set 7 : If both -f and -D are specified when updating, remove all untracked directories #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -5 lines) Patch
M gclient.py View 1 2 3 4 5 6 2 chunks +9 lines, -4 lines 0 comments Download
M gclient_scm.py View 1 2 3 4 5 6 3 chunks +24 lines, -1 line 0 comments Download
M tests/gclient_scm_test.py View 1 2 3 4 5 6 5 chunks +150 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Steve Block
8 years, 10 months ago (2012-02-08 12:55:41 UTC) #1
M-A Ruel
http://chromiumcodereview.appspot.com/9348054/diff/1004/gclient_scm.py File gclient_scm.py (right): http://chromiumcodereview.appspot.com/9348054/diff/1004/gclient_scm.py#newcode451 gclient_scm.py:451: ['ls-files', '--directory', '--others', '--exclude-standard'], Note that this will be ...
8 years, 10 months ago (2012-02-08 14:43:46 UTC) #2
Steve Block
http://chromiumcodereview.appspot.com/9348054/diff/1004/gclient_scm.py File gclient_scm.py (right): http://chromiumcodereview.appspot.com/9348054/diff/1004/gclient_scm.py#newcode451 gclient_scm.py:451: ['ls-files', '--directory', '--others', '--exclude-standard'], > http://crbug.com/109763 is about filtering ...
8 years, 10 months ago (2012-02-09 17:55:04 UTC) #3
Steve Block
Updated patch is a work in progress
8 years, 10 months ago (2012-02-09 18:36:46 UTC) #4
cmp
+some cros people that have been impacted by the previous condition in gclient and might ...
8 years, 10 months ago (2012-02-09 18:38:46 UTC) #5
M-A Ruel
On 2012/02/09 17:55:04, Steve Block wrote: > > Otherwise, it's going to be constantly deleting ...
8 years, 10 months ago (2012-02-10 01:43:55 UTC) #6
Peter Mayo
Could you add ,chromium-os:20759 to the BUG line. It looks like this will go a ...
8 years, 10 months ago (2012-02-10 01:51:09 UTC) #7
Steve Block
Updated patch to check --delete_unversioned_trees Note that I'm seeing failures in ManagedGitWrapperTestCase.testUpdateCheckout() and UnmanagedGitWrapperTestCase.testUpdateCheckout() when ...
8 years, 10 months ago (2012-02-10 11:22:20 UTC) #8
M-A Ruel
On 2012/02/10 11:22:20, Steve Block wrote: > Updated patch to check --delete_unversioned_trees > > Note ...
8 years, 10 months ago (2012-02-10 15:56:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/9348054/13002
8 years, 10 months ago (2012-02-11 10:25:56 UTC) #10
commit-bot: I haz the power
Presubmit check for 9348054-13002 failed and returned exit status 1. warning: code.google.com certificate with fingerprint ...
8 years, 10 months ago (2012-02-11 10:31:50 UTC) #11
Peter Mayo
lgtm
8 years, 10 months ago (2012-02-14 04:00:24 UTC) #12
Marc-Antoine Ruel (Google)
On 2012/02/11 10:31:50, I haz the power (commit-bot) wrote: > FAIL: testRevertAndStatus (__main__.GClientSmokeSVN) > ---------------------------------------------------------------------- ...
8 years, 10 months ago (2012-02-14 04:03:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/9348054/19001
8 years, 10 months ago (2012-02-15 00:55:39 UTC) #14
commit-bot: I haz the power
Change committed as 121986
8 years, 10 months ago (2012-02-15 01:02:28 UTC) #15
Peter Mayo
It seems this may have negatively impacted the chrome in chromiumos builders at least. chromeos-chrome-19.0.1043.0_alpha-r1: ...
8 years, 10 months ago (2012-02-15 16:13:11 UTC) #16
flackr
On 2012/02/15 16:13:11, Peter Mayo wrote: > It seems this may have negatively impacted the ...
8 years, 10 months ago (2012-02-15 16:24:35 UTC) #17
Steve Block
Investigating
8 years, 10 months ago (2012-02-15 16:26:13 UTC) #18
M-A Ruel
I'll revert in the meantime. Le 15 février 2012 08:26, Steve Block <steveblock@chromium.org> a écrit ...
8 years, 10 months ago (2012-02-15 16:34:23 UTC) #19
Steve Block
Note that it's the change to gclient that needs reverting, not the change to the ...
8 years, 10 months ago (2012-02-15 16:36:38 UTC) #20
M-A Ruel
Sure but it's faster and safer to revert this now. Le 15 février 2012 08:36, ...
8 years, 10 months ago (2012-02-15 16:37:36 UTC) #21
Peter Mayo (wrong one)
Which "this" is that? gclient -> ebuild -> boom! No buildbot config will help without ...
8 years, 10 months ago (2012-02-15 17:45:21 UTC) #22
M-A Ruel
8 years, 10 months ago (2012-02-15 17:53:53 UTC) #23
I also reverted the gclient change. You were cc'ed on the CL.

Le 15 février 2012 09:45, Peter Mayo <petermayo@google.com> a écrit :

> Which "this" is that?
>
> gclient -> ebuild -> boom!
>
> No buildbot config will help without neutering the affected builder
> completely.
>
>
> On Wed, Feb 15, 2012 at 11:37 AM, Marc-Antoine Ruel
<maruel@chromium.org>wrote:
>
>> Sure but it's faster and safer to revert this now.
>>
>> Le 15 février 2012 08:36, Steve Block <steveblock@chromium.org> a écrit :
>>
>> Note that it's the change to gclient that needs reverting, not the
>>> change to the buildbot config. See
>>>
>>>
http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28x86%...
>>>
>>
>>
>
>
> --
>
> Peter Mayo | Waterloo |  petermayo@google.com |  519-880-3439
>
>

Powered by Google App Engine
This is Rietveld 408576698