Fossil SCM
Command line output-only changes of 'checkins' to 'check-ins' for the dbstat, info, and purge sub-commands. This may break some pre-existing automation, please review.
Commit
739b3aab92c8241e164e2308daaabae04c90ccc5
Parent
30c107e2c8de3f7…
3 files changed
+1
-1
+1
-1
+1
-1
+1
-1
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -227,11 +227,11 @@ | ||
| 227 | 227 | fossil_print("project-code: %s\n", db_get("project-code", "")); |
| 228 | 228 | vid = g.localOpen ? db_lget_int("checkout", 0) : 0; |
| 229 | 229 | if( vid ){ |
| 230 | 230 | show_common_info(vid, "checkout:", 1, 1); |
| 231 | 231 | } |
| 232 | - fossil_print("checkins: %d\n", | |
| 232 | + fossil_print("check-ins: %d\n", | |
| 233 | 233 | db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/")); |
| 234 | 234 | }else{ |
| 235 | 235 | int rid; |
| 236 | 236 | rid = name_to_rid(g.argv[2]); |
| 237 | 237 | if( rid==0 ){ |
| 238 | 238 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -227,11 +227,11 @@ | |
| 227 | fossil_print("project-code: %s\n", db_get("project-code", "")); |
| 228 | vid = g.localOpen ? db_lget_int("checkout", 0) : 0; |
| 229 | if( vid ){ |
| 230 | show_common_info(vid, "checkout:", 1, 1); |
| 231 | } |
| 232 | fossil_print("checkins: %d\n", |
| 233 | db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/")); |
| 234 | }else{ |
| 235 | int rid; |
| 236 | rid = name_to_rid(g.argv[2]); |
| 237 | if( rid==0 ){ |
| 238 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -227,11 +227,11 @@ | |
| 227 | fossil_print("project-code: %s\n", db_get("project-code", "")); |
| 228 | vid = g.localOpen ? db_lget_int("checkout", 0) : 0; |
| 229 | if( vid ){ |
| 230 | show_common_info(vid, "checkout:", 1, 1); |
| 231 | } |
| 232 | fossil_print("check-ins: %d\n", |
| 233 | db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/")); |
| 234 | }else{ |
| 235 | int rid; |
| 236 | rid = name_to_rid(g.argv[2]); |
| 237 | if( rid==0 ){ |
| 238 |
+1
-1
| --- src/purge.c | ||
| +++ src/purge.c | ||
| @@ -571,11 +571,11 @@ | ||
| 571 | 571 | nArtifact = db_int(0, "SELECT count(*) FROM ok"); |
| 572 | 572 | if( explainOnly ){ |
| 573 | 573 | describe_artifacts_to_stdout("IN ok", 0); |
| 574 | 574 | }else{ |
| 575 | 575 | int peid = purge_artifact_list("ok","",1); |
| 576 | - fossil_print("%d checkins and %d artifacts purged.\n", nCkin, nArtifact); | |
| 576 | + fossil_print("%d check-ins and %d artifacts purged.\n", nCkin, nArtifact); | |
| 577 | 577 | fossil_print("undoable using \"%s purge undo %d\".\n", |
| 578 | 578 | g.nameOfExe, peid); |
| 579 | 579 | } |
| 580 | 580 | db_end_transaction(explainOnly||dryRun); |
| 581 | 581 | } |
| 582 | 582 |
| --- src/purge.c | |
| +++ src/purge.c | |
| @@ -571,11 +571,11 @@ | |
| 571 | nArtifact = db_int(0, "SELECT count(*) FROM ok"); |
| 572 | if( explainOnly ){ |
| 573 | describe_artifacts_to_stdout("IN ok", 0); |
| 574 | }else{ |
| 575 | int peid = purge_artifact_list("ok","",1); |
| 576 | fossil_print("%d checkins and %d artifacts purged.\n", nCkin, nArtifact); |
| 577 | fossil_print("undoable using \"%s purge undo %d\".\n", |
| 578 | g.nameOfExe, peid); |
| 579 | } |
| 580 | db_end_transaction(explainOnly||dryRun); |
| 581 | } |
| 582 |
| --- src/purge.c | |
| +++ src/purge.c | |
| @@ -571,11 +571,11 @@ | |
| 571 | nArtifact = db_int(0, "SELECT count(*) FROM ok"); |
| 572 | if( explainOnly ){ |
| 573 | describe_artifacts_to_stdout("IN ok", 0); |
| 574 | }else{ |
| 575 | int peid = purge_artifact_list("ok","",1); |
| 576 | fossil_print("%d check-ins and %d artifacts purged.\n", nCkin, nArtifact); |
| 577 | fossil_print("undoable using \"%s purge undo %d\".\n", |
| 578 | g.nameOfExe, peid); |
| 579 | } |
| 580 | db_end_transaction(explainOnly||dryRun); |
| 581 | } |
| 582 |
+1
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -224,11 +224,11 @@ | ||
| 224 | 224 | } |
| 225 | 225 | a = t/fsize; |
| 226 | 226 | fossil_print("%*s%d:%d\n", colWidth, "compression-ratio:", a, b); |
| 227 | 227 | } |
| 228 | 228 | n = db_int(0, "SELECT COUNT(*) FROM event e WHERE e.type='ci'"); |
| 229 | - fossil_print("%*s%d\n", colWidth, "checkins:", n); | |
| 229 | + fossil_print("%*s%d\n", colWidth, "check-ins:", n); | |
| 230 | 230 | n = db_int(0, "SELECT count(*) FROM filename /*scan*/"); |
| 231 | 231 | fossil_print("%*s%d across all branches\n", colWidth, "files:", n); |
| 232 | 232 | n = db_int(0, "SELECT count(*) FROM tag /*scan*/" |
| 233 | 233 | " WHERE tagname GLOB 'wiki-*'"); |
| 234 | 234 | m = db_int(0, "SELECT COUNT(*) FROM event WHERE type='w'"); |
| 235 | 235 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -224,11 +224,11 @@ | |
| 224 | } |
| 225 | a = t/fsize; |
| 226 | fossil_print("%*s%d:%d\n", colWidth, "compression-ratio:", a, b); |
| 227 | } |
| 228 | n = db_int(0, "SELECT COUNT(*) FROM event e WHERE e.type='ci'"); |
| 229 | fossil_print("%*s%d\n", colWidth, "checkins:", n); |
| 230 | n = db_int(0, "SELECT count(*) FROM filename /*scan*/"); |
| 231 | fossil_print("%*s%d across all branches\n", colWidth, "files:", n); |
| 232 | n = db_int(0, "SELECT count(*) FROM tag /*scan*/" |
| 233 | " WHERE tagname GLOB 'wiki-*'"); |
| 234 | m = db_int(0, "SELECT COUNT(*) FROM event WHERE type='w'"); |
| 235 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -224,11 +224,11 @@ | |
| 224 | } |
| 225 | a = t/fsize; |
| 226 | fossil_print("%*s%d:%d\n", colWidth, "compression-ratio:", a, b); |
| 227 | } |
| 228 | n = db_int(0, "SELECT COUNT(*) FROM event e WHERE e.type='ci'"); |
| 229 | fossil_print("%*s%d\n", colWidth, "check-ins:", n); |
| 230 | n = db_int(0, "SELECT count(*) FROM filename /*scan*/"); |
| 231 | fossil_print("%*s%d across all branches\n", colWidth, "files:", n); |
| 232 | n = db_int(0, "SELECT count(*) FROM tag /*scan*/" |
| 233 | " WHERE tagname GLOB 'wiki-*'"); |
| 234 | m = db_int(0, "SELECT COUNT(*) FROM event WHERE type='w'"); |
| 235 |