Fossil SCM
Add the (undocumented) "fossil chat purge" command, for debugging.
Commit
3fe805acb6fd374fa4b1854023c0d9ff8fa167992d7f08de10401ff59d654bad
Parent
fc79c57c591759d…
1 file changed
+4
+4
| --- src/chat.c | ||
| +++ src/chat.c | ||
| @@ -1451,9 +1451,13 @@ | ||
| 1451 | 1451 | ); |
| 1452 | 1452 | } |
| 1453 | 1453 | }else if( strcmp(g.argv[2],"url")==0 ){ |
| 1454 | 1454 | /* Show the URL to access chat. */ |
| 1455 | 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(); | |
| 1456 | 1460 | }else{ |
| 1457 | 1461 | fossil_fatal("no such subcommand \"%s\". Use --help for help", g.argv[2]); |
| 1458 | 1462 | } |
| 1459 | 1463 | } |
| 1460 | 1464 |
| --- 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 |