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

Issue 18768004: When switching to/from a cache git dir, try to reuse as much data as possible. (Closed)

Created:
7 years, 5 months ago by iannucci
Modified:
7 years, 5 months ago
Reviewers:
szager1, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

When switching to/from a cache git dir, try to reuse as much data as possible. R=szager@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=212140

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use try/finally (accidentally deleted patchset #2 w/ comments :() #

Patch Set 3 : +4 #

Patch Set 4 : Revert to using boolean to avoid calling function if the remote-switch logic actually throws an exe… #

Patch Set 5 : Use reference in the fetch case too to make things more symmetric #

Total comments: 2

Patch Set 6 : When writing to a file, make the file writable! #

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

Messages

Total messages: 18 (0 generated)
iannucci
7 years, 5 months ago (2013-07-12 00:11:53 UTC) #1
iannucci
On 2013/07/12 00:11:53, iannucci wrote: PTAL when you get a chance :)
7 years, 5 months ago (2013-07-12 23:28:57 UTC) #2
iannucci
https://codereview.chromium.org/18768004/diff/1/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/18768004/diff/1/gclient_scm.py#newcode413 gclient_scm.py:413: os.remove(altfile) Actually, we should do this in the non-switch ...
7 years, 5 months ago (2013-07-12 23:32:08 UTC) #3
iannucci
PTAL
7 years, 5 months ago (2013-07-16 02:12:16 UTC) #4
M-A Ruel
Personally, I'm quite wary of not having any test. There's just so many things that ...
7 years, 5 months ago (2013-07-16 13:50:03 UTC) #5
iannucci
On 2013/07/16 13:50:03, Marc-Antoine Ruel wrote: > Personally, I'm quite wary of not having any ...
7 years, 5 months ago (2013-07-16 18:21:38 UTC) #6
M-A Ruel
On 2013/07/16 18:21:38, iannucci wrote: > On 2013/07/16 13:50:03, Marc-Antoine Ruel wrote: > I'll see ...
7 years, 5 months ago (2013-07-16 18:23:06 UTC) #7
szager1
https://codereview.chromium.org/18768004/diff/7001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/18768004/diff/7001/gclient_scm.py#newcode814 gclient_scm.py:814: # If the clone has an object dependency on ...
7 years, 5 months ago (2013-07-16 21:25:24 UTC) #8
iannucci
https://codereview.chromium.org/18768004/diff/7001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/18768004/diff/7001/gclient_scm.py#newcode814 gclient_scm.py:814: # If the clone has an object dependency on ...
7 years, 5 months ago (2013-07-16 21:47:05 UTC) #9
szager1
On 2013/07/16 21:47:05, iannucci wrote: > https://codereview.chromium.org/18768004/diff/7001/gclient_scm.py > File gclient_scm.py (right): > > https://codereview.chromium.org/18768004/diff/7001/gclient_scm.py#newcode814 > ...
7 years, 5 months ago (2013-07-16 21:49:21 UTC) #10
iannucci
@M-A: I think I'm going to pass on the test for now... even the smoketests ...
7 years, 5 months ago (2013-07-16 22:15:12 UTC) #11
M-A Ruel
On 2013/07/16 22:15:12, iannucci wrote: > @M-A: I think I'm going to pass on the ...
7 years, 5 months ago (2013-07-16 22:26:36 UTC) #12
iannucci
On 2013/07/16 22:26:36, Marc-Antoine Ruel wrote: > On 2013/07/16 22:15:12, iannucci wrote: > > @M-A: ...
7 years, 5 months ago (2013-07-16 23:31:46 UTC) #13
iannucci
OK, one last look, I promise. Aaron pointed out that there was a missed opportunity ...
7 years, 5 months ago (2013-07-17 02:31:39 UTC) #14
szager1
https://codereview.chromium.org/18768004/diff/28001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/18768004/diff/28001/gclient_scm.py#newcode833 gclient_scm.py:833: with open(altfile) as f: open(altfile, 'w')
7 years, 5 months ago (2013-07-17 21:43:06 UTC) #15
iannucci
yes, trying it locally works, after the file is writable. FWIW, I did test it ...
7 years, 5 months ago (2013-07-17 21:52:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/18768004/34001
7 years, 5 months ago (2013-07-17 21:54:39 UTC) #17
commit-bot: I haz the power
7 years, 5 months ago (2013-07-17 21:56:50 UTC) #18
Message was sent while issue was closed.
Change committed as 212140

Powered by Google App Engine
This is Rietveld 408576698