|
Refactor Source and SourceRegistry.
This splits Source into two classes, Source and LiveSource. The former
is completely independent of the system cache directory, and mostly
contains source metadata and logic about manipulating descriptions.
SourceRegistry now deals strictly in Sources, with LiveSources being
handled by SystemCache. This means that classes like Pubspec and
LockFile no longer have transitive references to the system cache
directory.
This will also make it possible to clean up PackageName equality logic
by making PackageNames track their concrete Sources rather than just
their source names.
See #912
R=rnystrom@google.com
Committed: https://github.com/dart-lang/pub/commit/3fb39388c4e1cd872a83ca971f458e0976c758e0
Total comments: 18
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+662 lines, -602 lines) |
Patch |
 |
M |
lib/src/barback/asset_environment.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/command.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
lib/src/command/cache_add.dart
|
View
|
1
2
3
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lib/src/command/cache_list.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/command/cache_repair.dart
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/command/lish.dart
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lib/src/command/list_package_dirs.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/command/uploader.dart
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
lib/src/entrypoint.dart
|
View
|
1
2
3
|
7 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
 |
M |
lib/src/global_packages.dart
|
View
|
1
2
3
|
11 chunks |
+18 lines, -19 lines |
0 comments
|
Download
|
 |
M |
lib/src/lock_file.dart
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lib/src/package_graph.dart
|
View
|
1
2
3
|
4 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
 |
M |
lib/src/solver/backtracking_solver.dart
|
View
|
1
2
3
|
10 chunks |
+29 lines, -25 lines |
0 comments
|
Download
|
 |
M |
lib/src/solver/version_solver.dart
|
View
|
1
2
3
|
5 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
lib/src/source.dart
|
View
|
1
2
3
|
6 chunks |
+85 lines, -86 lines |
0 comments
|
Download
|
 |
M |
lib/src/source/cached.dart
|
View
|
1
2
3
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lib/src/source/git.dart
|
View
|
1
2
3
|
4 chunks |
+112 lines, -98 lines |
0 comments
|
Download
|
 |
M |
lib/src/source/hosted.dart
|
View
|
1
2
3
|
15 chunks |
+169 lines, -154 lines |
0 comments
|
Download
|
 |
M |
lib/src/source/path.dart
|
View
|
1
2
3
|
4 chunks |
+51 lines, -38 lines |
0 comments
|
Download
|
 |
M |
lib/src/source/unknown.dart
|
View
|
1
2
3
|
3 chunks |
+25 lines, -13 lines |
0 comments
|
Download
|
 |
M |
lib/src/source_registry.dart
|
View
|
1
2
|
2 chunks |
+33 lines, -25 lines |
0 comments
|
Download
|
 |
M |
lib/src/system_cache.dart
|
View
|
1
2
3
|
3 chunks |
+51 lines, -30 lines |
0 comments
|
Download
|
 |
M |
lib/src/validator/dependency.dart
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/dependency_computer/utils.dart
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/lock_file_test.dart
|
View
|
1
2
3
|
2 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
 |
M |
test/package_list_files_test.dart
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
test/pubspec_test.dart
|
View
|
1
2
3
|
2 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
 |
M |
test/test_pub.dart
|
View
|
|
4 chunks |
+6 lines, -12 lines |
0 comments
|
Download
|
 |
M |
test/version_solver_test.dart
|
View
|
1
2
3
|
7 chunks |
+32 lines, -20 lines |
0 comments
|
Download
|
Total messages: 9 (1 generated)
|