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

Issue 387067: Fix looking for local versions of cached files (Closed)

Created:
11 years, 1 month ago by Dirk Pranke
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Revert changes to GetCachedFile() in r30414, r30910, r31586, and go back to the behavior before I started messing with it. It turns out it's not worth the hassle to try and "clean this up"; we depend on the current convoluted semantics, which is to crawl up the tree from the current dir looking for codereview.settings files, but to only ever look for PRESUBMIT.py in the root of the repo. Trying to unify the logic seems to be too painful. BUG=none R=maruel@chromium.org TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33648

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 1

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -20 lines) Patch
M gcl.py View 1 2 3 4 5 3 chunks +3 lines, -20 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Dirk Pranke
I'm starting to agree with you that this change is more trouble than its worth ...
11 years, 1 month ago (2009-11-17 02:12:02 UTC) #1
M-A Ruel
http://codereview.chromium.org/387067/diff/4001/5001 File gcl.py (right): http://codereview.chromium.org/387067/diff/4001/5001#newcode157 Line 157: while True: Actually, there is something weird in ...
11 years, 1 month ago (2009-11-17 02:25:07 UTC) #2
Dirk Pranke
http://codereview.chromium.org/387067/diff/4001/5001 File gcl.py (right): http://codereview.chromium.org/387067/diff/4001/5001#newcode157 Line 157: while True: On 2009/11/17 02:25:07, Marc-Antoine Ruel wrote: ...
11 years, 1 month ago (2009-11-17 02:56:59 UTC) #3
M-A Ruel
On 2009/11/17 02:56:59, dpranke wrote: > http://codereview.chromium.org/387067/diff/4001/5001 > File gcl.py (right): > > http://codereview.chromium.org/387067/diff/4001/5001#newcode157 > ...
11 years, 1 month ago (2009-11-17 15:06:56 UTC) #4
Dirk Pranke
11 years, 1 month ago (2009-11-23 19:28:01 UTC) #5
M-A Ruel
http://codereview.chromium.org/387067/diff/8001/9001 File gcl.py (right): http://codereview.chromium.org/387067/diff/8001/9001#newcode152 gcl.py:152: settings_file = FindUpwardAndReadFile(CODEREVIEW_SETTINGS_FILE) It won't work if codereview.settings isn't ...
11 years, 1 month ago (2009-11-23 19:34:48 UTC) #6
M-A Ruel
On Mon, Nov 23, 2009 at 4:46 PM, Dirk Pranke <dpranke@chromium.org> wrote: > Yeah, I ...
11 years, 1 month ago (2009-11-23 21:50:15 UTC) #7
M-A Ruel
On Mon, Nov 23, 2009 at 5:48 PM, Dirk Pranke <dpranke@chromium.org> wrote: > I assume ...
11 years, 1 month ago (2009-11-24 01:20:20 UTC) #8
M-A Ruel
On Mon, Nov 23, 2009 at 8:29 PM, Dirk Pranke <dpranke@chromium.org> wrote: > Okay, in ...
11 years, 1 month ago (2009-11-24 01:50:58 UTC) #9
M-A Ruel
Oh, sorry about your head. That's weird because you are saying exactly the reverse of ...
11 years ago (2009-11-24 16:57:44 UTC) #10
Dirk Pranke
My brain hurts. Okay, I'll take one last stab at this ... I suggest that ...
11 years ago (2009-11-24 21:17:15 UTC) #11
Dirk Pranke
Yeah, I thought about this and couldn't figure out a use case where codereview.settings didn't ...
11 years ago (2009-11-24 21:17:15 UTC) #12
Dirk Pranke
I assume in your example there's a "cd depot_tools" in between the svn co and ...
11 years ago (2009-11-24 21:17:16 UTC) #13
Dirk Pranke
Okay, in this case, then I think the right thing to do is if FindUpwardsAndReadFile(X) ...
11 years ago (2009-11-24 21:17:16 UTC) #14
M-A Ruel
On 2009/11/24 21:17:16, dpranke wrote: > Okay, in this case, then I think the right ...
11 years ago (2009-12-02 21:04:05 UTC) #15
Dirk Pranke
11 years ago (2009-12-03 00:54:04 UTC) #16
M-A Ruel
lgtm
11 years ago (2009-12-03 01:29:53 UTC) #17
Dirk Pranke
11 years ago (2009-12-03 20:05:23 UTC) #18
Sorry, I've been delayed by other fixes. I'll get this in today.

-- Dirk

On Wed, Dec 2, 2009 at 1:04 PM,  <maruel@chromium.org> wrote:
> On 2009/11/24 21:17:16, dpranke wrote:
>>
>> Okay, in this case, then I think the right thing to do is if
>> FindUpwardsAndReadFile(X) should return GetCachedFile(x) in the
>> failure case. Does that sound right?
>
>> I'm actually not sure about not wanting to crawl up the remote tree,
>> though. What if I checked out src/webkit/tools/layout_tests? shouldn't
>> I look in src, webkit, and tools before skipping up to the top of the
>> repo?
>
> I just want to have the error currently output about codereview.settings
> removed
> and I'm still not sure locally modified check buys us anything (beside
> slowing
> down gcl operations).
>
> Please update.
>
> http://codereview.chromium.org/387067
>

Powered by Google App Engine
This is Rietveld 408576698