Fossil SCM
Simplify the previous check-in.
Commit
384482a87c077666f965e108713815bd371816bf
Parent
56f74a120d0aac8…
1 file changed
+1
-3
+1
-3
| --- src/sqlcmd.c | ||
| +++ src/sqlcmd.c | ||
| @@ -197,14 +197,12 @@ | ||
| 197 | 197 | ** |
| 198 | 198 | ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin; |
| 199 | 199 | ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk'); |
| 200 | 200 | */ |
| 201 | 201 | void cmd_sqlite3(void){ |
| 202 | - int noRepository; | |
| 203 | 202 | extern int sqlite3_shell(int, char**); |
| 204 | - noRepository = find_option("no-repository", 0, 0)!=0; | |
| 205 | - if( !noRepository ){ | |
| 203 | + if( !find_option("no-repository", 0, 0)!=0 ){ | |
| 206 | 204 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 207 | 205 | db_close(1); |
| 208 | 206 | } |
| 209 | 207 | sqlite3_shutdown(); |
| 210 | 208 | sqlite3_shell(g.argc-1, g.argv+1); |
| 211 | 209 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -197,14 +197,12 @@ | |
| 197 | ** |
| 198 | ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin; |
| 199 | ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk'); |
| 200 | */ |
| 201 | void cmd_sqlite3(void){ |
| 202 | int noRepository; |
| 203 | extern int sqlite3_shell(int, char**); |
| 204 | noRepository = find_option("no-repository", 0, 0)!=0; |
| 205 | if( !noRepository ){ |
| 206 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 207 | db_close(1); |
| 208 | } |
| 209 | sqlite3_shutdown(); |
| 210 | sqlite3_shell(g.argc-1, g.argv+1); |
| 211 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -197,14 +197,12 @@ | |
| 197 | ** |
| 198 | ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin; |
| 199 | ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk'); |
| 200 | */ |
| 201 | void cmd_sqlite3(void){ |
| 202 | extern int sqlite3_shell(int, char**); |
| 203 | if( !find_option("no-repository", 0, 0)!=0 ){ |
| 204 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 205 | db_close(1); |
| 206 | } |
| 207 | sqlite3_shutdown(); |
| 208 | sqlite3_shell(g.argc-1, g.argv+1); |
| 209 |