Fossil SCM
Add a warning to the "fossil sqlite3" command to remind users that careless use of the command can easily corrupt the repository. Ticket [b18338c226f6fb4899].
Commit
4e1241f3236236187ad2a8f205323c05b98c9895
Parent
f89d953a061c5bb…
1 file changed
+4
+4
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1155,10 +1155,14 @@ | ||
| 1155 | 1155 | ** Usage: %fossil sqlite3 ?DATABASE? ?OPTIONS? |
| 1156 | 1156 | ** |
| 1157 | 1157 | ** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS. |
| 1158 | 1158 | ** If DATABASE is omitted, then the repository that serves the working |
| 1159 | 1159 | ** directory is opened. |
| 1160 | +** | |
| 1161 | +** WARNING: Careless use of this command can corrupt a Fossil repository | |
| 1162 | +** in ways that are unrecoverable. Be sure you know what you are doing before | |
| 1163 | +** running any SQL commands that modifies the repository database. | |
| 1160 | 1164 | */ |
| 1161 | 1165 | void sqlite3_cmd(void){ |
| 1162 | 1166 | extern int sqlite3_shell(int, char**); |
| 1163 | 1167 | sqlite3_shell(g.argc-1, g.argv+1); |
| 1164 | 1168 | } |
| 1165 | 1169 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1155,10 +1155,14 @@ | |
| 1155 | ** Usage: %fossil sqlite3 ?DATABASE? ?OPTIONS? |
| 1156 | ** |
| 1157 | ** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS. |
| 1158 | ** If DATABASE is omitted, then the repository that serves the working |
| 1159 | ** directory is opened. |
| 1160 | */ |
| 1161 | void sqlite3_cmd(void){ |
| 1162 | extern int sqlite3_shell(int, char**); |
| 1163 | sqlite3_shell(g.argc-1, g.argv+1); |
| 1164 | } |
| 1165 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1155,10 +1155,14 @@ | |
| 1155 | ** Usage: %fossil sqlite3 ?DATABASE? ?OPTIONS? |
| 1156 | ** |
| 1157 | ** Run the standalone sqlite3 command-line shell on DATABASE with OPTIONS. |
| 1158 | ** If DATABASE is omitted, then the repository that serves the working |
| 1159 | ** directory is opened. |
| 1160 | ** |
| 1161 | ** WARNING: Careless use of this command can corrupt a Fossil repository |
| 1162 | ** in ways that are unrecoverable. Be sure you know what you are doing before |
| 1163 | ** running any SQL commands that modifies the repository database. |
| 1164 | */ |
| 1165 | void sqlite3_cmd(void){ |
| 1166 | extern int sqlite3_shell(int, char**); |
| 1167 | sqlite3_shell(g.argc-1, g.argv+1); |
| 1168 | } |
| 1169 |