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

Issue 13814012: Changed the behaviour of '--transitive' in gclient.py to use revision instead of timestamp for iden… (Closed)

Created:
7 years, 8 months ago by kustermann
Modified:
7 years, 8 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, dgrove
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Changed the behaviour of '--transitive' in gclient.py to use revision instead of timestamp for identical repositories. Here's some background why we need this: We discovered that google code defines the timestamp of a revision to be the time when a commit was started rather than when it was finished (apache subversion takes the timestamp when the commit transaction is finished). This can result in a situation where revision R(i-1) has a higher timestamp than Ri. See bug: https://code.google.com/p/support/issues/detail?id=30419 When using 'gclient --transitive' we effectively do date-based checkouts. If a parent has a dependency (without a ...@revision) and that dependency lives in the same repository as the parent does we'd like to checkout the exact same revision as the parent (if we do a date-based checkout as we do now the google code bug can result in a situation where we don't get the same revision). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=194852

Patch Set 1 #

Total comments: 13

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -92 lines) Patch
M gclient.py View 1 2 3 4 4 chunks +46 lines, -41 lines 0 comments Download
M testing_support/fake_repos.py View 1 2 3 4 5 chunks +70 lines, -13 lines 0 comments Download
M tests/gclient_smoketest.py View 1 2 3 4 3 chunks +59 lines, -38 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
kustermann
7 years, 8 months ago (2013-04-09 12:32:44 UTC) #1
ricow1
Marc-Antoine: Could you take a look, this has been causing us headaches a number of ...
7 years, 8 months ago (2013-04-12 06:52:58 UTC) #2
ricow1
Dan: FYI
7 years, 8 months ago (2013-04-12 07:01:39 UTC) #3
M-A Ruel
Note that if you don't add a test, you'll be on the hook if it ...
7 years, 8 months ago (2013-04-12 15:28:17 UTC) #4
kustermann
PTAL. > Note that if you don't add a test, you'll be on the hook ...
7 years, 8 months ago (2013-04-15 08:59:13 UTC) #5
ricow1
LGTM https://codereview.chromium.org/13814012/diff/8004/gclient.py File gclient.py (right): https://codereview.chromium.org/13814012/diff/8004/gclient.py#newcode568 gclient.py:568: # (The timestamps of commits in google code ...
7 years, 8 months ago (2013-04-15 09:13:32 UTC) #6
M-A Ruel
https://codereview.chromium.org/13814012/diff/18001/gclient.py File gclient.py (right): https://codereview.chromium.org/13814012/diff/18001/gclient.py#newcode546 gclient.py:546: """Use revision/timestamp from parent if no explicit revision was ...
7 years, 8 months ago (2013-04-16 20:28:03 UTC) #7
kustermann
Thanks for the review. PTAL https://codereview.chromium.org/13814012/diff/8004/gclient.py File gclient.py (right): https://codereview.chromium.org/13814012/diff/8004/gclient.py#newcode568 gclient.py:568: # (The timestamps of ...
7 years, 8 months ago (2013-04-17 13:55:06 UTC) #8
M-A Ruel
lgtm with small nits, thanks for the tests. https://codereview.chromium.org/13814012/diff/28001/gclient.py File gclient.py (right): https://codereview.chromium.org/13814012/diff/28001/gclient.py#newcode561 gclient.py:561: assert ...
7 years, 8 months ago (2013-04-17 14:54:09 UTC) #9
ricow1
https://codereview.chromium.org/13814012/diff/28001/tests/gclient_smoketest.py File tests/gclient_smoketest.py (right): https://codereview.chromium.org/13814012/diff/28001/tests/gclient_smoketest.py#newcode819 tests/gclient_smoketest.py:819: # timestamp(r3) < timestamp(r2) svn will checkout r1. On ...
7 years, 8 months ago (2013-04-18 07:11:30 UTC) #10
kustermann
Thanks for taking another look. https://codereview.chromium.org/13814012/diff/28001/gclient.py File gclient.py (right): https://codereview.chromium.org/13814012/diff/28001/gclient.py#newcode561 gclient.py:561: assert self.parent and self.parent.used_scm ...
7 years, 8 months ago (2013-04-18 08:28:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kustermann@google.com/13814012/34001
7 years, 8 months ago (2013-04-18 08:29:16 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 08:32:05 UTC) #13
Message was sent while issue was closed.
Change committed as 194852

Powered by Google App Engine
This is Rietveld 408576698