Fossil SCM

Add the (undocumented) "fossil chat purge" command, for debugging.

drh 2025-12-11 11:24 trunk
Commit 3fe805acb6fd374fa4b1854023c0d9ff8fa167992d7f08de10401ff59d654bad
1 file changed +4
+4
--- src/chat.c
+++ src/chat.c
@@ -1451,9 +1451,13 @@
14511451
);
14521452
}
14531453
}else if( strcmp(g.argv[2],"url")==0 ){
14541454
/* Show the URL to access chat. */
14551455
fossil_print("%s/chat\n", zUrl);
1456
+ }else if( strcmp(g.argv[2],"purge")==0 ){
1457
+ /* Undocumented debugging command that calls chat_purge() */
1458
+ chat_create_tables();
1459
+ chat_purge();
14561460
}else{
14571461
fossil_fatal("no such subcommand \"%s\". Use --help for help", g.argv[2]);
14581462
}
14591463
}
14601464
--- src/chat.c
+++ src/chat.c
@@ -1451,9 +1451,13 @@
1451 );
1452 }
1453 }else if( strcmp(g.argv[2],"url")==0 ){
1454 /* Show the URL to access chat. */
1455 fossil_print("%s/chat\n", zUrl);
 
 
 
 
1456 }else{
1457 fossil_fatal("no such subcommand \"%s\". Use --help for help", g.argv[2]);
1458 }
1459 }
1460
--- src/chat.c
+++ src/chat.c
@@ -1451,9 +1451,13 @@
1451 );
1452 }
1453 }else if( strcmp(g.argv[2],"url")==0 ){
1454 /* Show the URL to access chat. */
1455 fossil_print("%s/chat\n", zUrl);
1456 }else if( strcmp(g.argv[2],"purge")==0 ){
1457 /* Undocumented debugging command that calls chat_purge() */
1458 chat_create_tables();
1459 chat_purge();
1460 }else{
1461 fossil_fatal("no such subcommand \"%s\". Use --help for help", g.argv[2]);
1462 }
1463 }
1464

Keyboard Shortcuts

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