Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9eef0a1

Browse files
munificentcommit-bot@chromium.org
authored andcommitted
Print a count of how many language subdirectories have been migrated.
Change-Id: Id38ff08fd069db6f636a098d0d2d0351c10a8115 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149788 Auto-Submit: Bob Nystrom <[email protected]> Reviewed-by: Nicholas Shahan <[email protected]> Commit-Queue: Bob Nystrom <[email protected]>
1 parent 7112027 commit 9eef0a1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/migration/bin/progress.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ void main(List<String> arguments) {
2929
var totalLines = 0;
3030
var totalMigratedFiles = 0;
3131
var totalMigratedLines = 0;
32+
var languageDirs = 0;
33+
var migratedLanguageDirs = 0;
3234

3335
var skipCompleteSubfolders = arguments.contains("--incomplete");
3436

@@ -68,12 +70,21 @@ void main(List<String> arguments) {
6870
totalLines += lines;
6971
totalMigratedFiles += migratedFiles;
7072
totalMigratedLines += migratedLines;
73+
74+
if (dir.startsWith("language_2/")) {
75+
languageDirs++;
76+
if (migratedLines == lines) {
77+
migratedLanguageDirs++;
78+
}
79+
}
7180
}
7281
}
7382

7483
print("");
7584
_show(
7685
"total", totalMigratedFiles, totalFiles, totalMigratedLines, totalLines);
86+
print("");
87+
print("Finished $migratedLanguageDirs/$languageDirs language directories.");
7788
}
7889

7990
void _show(

0 commit comments

Comments
 (0)