Fossil SCM

Typo in variable name.

preben 2024-01-13 18:57 hash-if-mtime-is-current
Commit 1cd36fad6d7a8f25607179f7fcbd0090c4b86abcb82bb0a9bcf85ac684924d71
1 file changed +3 -3
+3 -3
--- src/merge.c
+++ src/merge.c
@@ -218,18 +218,18 @@
218218
219219
/*
220220
** Print the content of the VFILE table on standard output, for
221221
** debugging purposes.
222222
*/
223
-static void debug_show_vfile(int shoeAll){
223
+static void debug_show_vfile(int showAll){
224224
Stmt q;
225225
int pvid = -1;
226226
db_prepare(&q,
227227
"SELECT vid, id, chnged, deleted, isexe, islink, rid, mrid, mtime,"
228228
" pathname, origname, mhash, %s FROM vfile"
229229
" ORDER BY vid, pathname",
230
- shoeAll ? "COALESCE(datetime(mtime, 'unixepoch', 'localtime'), 'NULL')" : "''"
230
+ showAll ? "COALESCE(datetime(mtime, 'unixepoch', 'localtime'), 'NULL')" : "''"
231231
);
232232
while( db_step(&q)==SQLITE_ROW ){
233233
int vid = db_column_int(&q, 0);
234234
int chnged = db_column_int(&q, 2);
235235
int dltd = db_column_int(&q, 3);
@@ -253,11 +253,11 @@
253253
if( zOrig && zOrig[0] ){
254254
fossil_print(" <- %s\n", zOrig);
255255
}else{
256256
fossil_print("\n");
257257
}
258
- if( shoeAll ){
258
+ if( showAll ){
259259
fossil_print(" mtime %19s / %-10i mhash %s\n", db_column_text(&q, 12),
260260
db_column_int(&q , 8), db_column_text(&q, 11));
261261
}
262262
}
263263
db_finalize(&q);
264264
--- src/merge.c
+++ src/merge.c
@@ -218,18 +218,18 @@
218
219 /*
220 ** Print the content of the VFILE table on standard output, for
221 ** debugging purposes.
222 */
223 static void debug_show_vfile(int shoeAll){
224 Stmt q;
225 int pvid = -1;
226 db_prepare(&q,
227 "SELECT vid, id, chnged, deleted, isexe, islink, rid, mrid, mtime,"
228 " pathname, origname, mhash, %s FROM vfile"
229 " ORDER BY vid, pathname",
230 shoeAll ? "COALESCE(datetime(mtime, 'unixepoch', 'localtime'), 'NULL')" : "''"
231 );
232 while( db_step(&q)==SQLITE_ROW ){
233 int vid = db_column_int(&q, 0);
234 int chnged = db_column_int(&q, 2);
235 int dltd = db_column_int(&q, 3);
@@ -253,11 +253,11 @@
253 if( zOrig && zOrig[0] ){
254 fossil_print(" <- %s\n", zOrig);
255 }else{
256 fossil_print("\n");
257 }
258 if( shoeAll ){
259 fossil_print(" mtime %19s / %-10i mhash %s\n", db_column_text(&q, 12),
260 db_column_int(&q , 8), db_column_text(&q, 11));
261 }
262 }
263 db_finalize(&q);
264
--- src/merge.c
+++ src/merge.c
@@ -218,18 +218,18 @@
218
219 /*
220 ** Print the content of the VFILE table on standard output, for
221 ** debugging purposes.
222 */
223 static void debug_show_vfile(int showAll){
224 Stmt q;
225 int pvid = -1;
226 db_prepare(&q,
227 "SELECT vid, id, chnged, deleted, isexe, islink, rid, mrid, mtime,"
228 " pathname, origname, mhash, %s FROM vfile"
229 " ORDER BY vid, pathname",
230 showAll ? "COALESCE(datetime(mtime, 'unixepoch', 'localtime'), 'NULL')" : "''"
231 );
232 while( db_step(&q)==SQLITE_ROW ){
233 int vid = db_column_int(&q, 0);
234 int chnged = db_column_int(&q, 2);
235 int dltd = db_column_int(&q, 3);
@@ -253,11 +253,11 @@
253 if( zOrig && zOrig[0] ){
254 fossil_print(" <- %s\n", zOrig);
255 }else{
256 fossil_print("\n");
257 }
258 if( showAll ){
259 fossil_print(" mtime %19s / %-10i mhash %s\n", db_column_text(&q, 12),
260 db_column_int(&q , 8), db_column_text(&q, 11));
261 }
262 }
263 db_finalize(&q);
264

Keyboard Shortcuts

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