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.

mistachkin 2015-03-01 21:01 UTC trunk
Commit 739b3aab92c8241e164e2308daaabae04c90ccc5
3 files changed +1 -1 +1 -1 +1 -1
+1 -1
--- src/info.c
+++ src/info.c
@@ -227,11 +227,11 @@
227227
fossil_print("project-code: %s\n", db_get("project-code", ""));
228228
vid = g.localOpen ? db_lget_int("checkout", 0) : 0;
229229
if( vid ){
230230
show_common_info(vid, "checkout:", 1, 1);
231231
}
232
- fossil_print("checkins: %d\n",
232
+ fossil_print("check-ins: %d\n",
233233
db_int(-1, "SELECT count(*) FROM event WHERE type='ci' /*scan*/"));
234234
}else{
235235
int rid;
236236
rid = name_to_rid(g.argv[2]);
237237
if( rid==0 ){
238238
--- 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 @@
571571
nArtifact = db_int(0, "SELECT count(*) FROM ok");
572572
if( explainOnly ){
573573
describe_artifacts_to_stdout("IN ok", 0);
574574
}else{
575575
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);
577577
fossil_print("undoable using \"%s purge undo %d\".\n",
578578
g.nameOfExe, peid);
579579
}
580580
db_end_transaction(explainOnly||dryRun);
581581
}
582582
--- 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 @@
224224
}
225225
a = t/fsize;
226226
fossil_print("%*s%d:%d\n", colWidth, "compression-ratio:", a, b);
227227
}
228228
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);
230230
n = db_int(0, "SELECT count(*) FROM filename /*scan*/");
231231
fossil_print("%*s%d across all branches\n", colWidth, "files:", n);
232232
n = db_int(0, "SELECT count(*) FROM tag /*scan*/"
233233
" WHERE tagname GLOB 'wiki-*'");
234234
m = db_int(0, "SELECT COUNT(*) FROM event WHERE type='w'");
235235
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button