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

Issue 844263004: Properly update git binary snapshots during pub upgrade. (Closed)

Created:
5 years, 11 months ago by nweiz
Modified:
5 years, 11 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Properly update git binary snapshots during pub upgrade. Previously, the binaries were only updated if the version number had changed. Now they're updated if just the commit changes. This also improves the output of "pub upgrade" if a git dependency changes its commit but not its version number. R=rnystrom@google.com BUG=21971 Committed: https://code.google.com/p/dart/source/detail?r=42883

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -157 lines) Patch
M sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart View 1 2 chunks +9 lines, -9 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/git.dart View 1 1 chunk +22 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub/test/get/git/check_out_and_upgrade_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/activate/activate_git_after_hosted_test.dart View 1 2 chunks +13 lines, -8 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/activate/git_package_test.dart View 1 2 chunks +12 lines, -7 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/activate/reactivating_git_upgrades_test.dart View 1 3 chunks +22 lines, -13 lines 0 comments Download
A + sdk/lib/_internal/pub/test/snapshot/updates_snapshot_for_git_dependency_test.dart View 1 chunk +21 lines, -19 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/solver/backtracking_solver.dart View 1 1 chunk +87 lines, -48 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/source/git.dart View 1 1 chunk +24 lines, -2 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/get/git/check_out_and_upgrade_test.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/activate/activate_git_after_hosted_test.dart View 1 2 chunks +13 lines, -8 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/activate/git_package_test.dart View 1 2 chunks +11 lines, -7 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/activate/reactivating_git_upgrades_test.dart View 1 2 chunks +20 lines, -13 lines 0 comments Download
A + sdk/lib/_internal/pub_generated/test/snapshot/updates_snapshot_for_git_dependency_test.dart View 1 chunk +22 lines, -19 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
5 years, 11 months ago (2015-01-13 01:23:32 UTC) #1
Bob Nystrom
LGTM! https://codereview.chromium.org/844263004/diff/1/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart File sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart (right): https://codereview.chromium.org/844263004/diff/1/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart#newcode151 sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart:151: packages.map((id) => sources[id.source].resolveId(id))); I'm guessing this fixes this ...
5 years, 11 months ago (2015-01-13 17:18:41 UTC) #2
nweiz
https://codereview.chromium.org/844263004/diff/1/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart File sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart (right): https://codereview.chromium.org/844263004/diff/1/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart#newcode151 sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart:151: packages.map((id) => sources[id.source].resolveId(id))); On 2015/01/13 17:18:41, Bob Nystrom wrote: ...
5 years, 11 months ago (2015-01-14 00:36:40 UTC) #3
Bob Nystrom
https://codereview.chromium.org/844263004/diff/1/sdk/lib/_internal/pub/test/get/git/check_out_and_upgrade_test.dart File sdk/lib/_internal/pub/test/get/git/check_out_and_upgrade_test.dart (right): https://codereview.chromium.org/844263004/diff/1/sdk/lib/_internal/pub/test/get/git/check_out_and_upgrade_test.dart#newcode7 sdk/lib/_internal/pub/test/get/git/check_out_and_upgrade_test.dart:7: import 'package:scheduled_test/scheduled_test.dart'; On 2015/01/14 00:36:40, nweiz wrote: > On ...
5 years, 11 months ago (2015-01-14 00:40:34 UTC) #4
nweiz
Turns out there were some tests I missed; PTAL
5 years, 11 months ago (2015-01-14 01:21:24 UTC) #5
Bob Nystrom
lgtm
5 years, 11 months ago (2015-01-14 19:19:42 UTC) #6
nweiz
5 years, 11 months ago (2015-01-14 19:29:34 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 42883 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698