Fossil SCM

Fix typo that prevented the --no-repository option from working.

mistachkin 2016-01-14 20:40 trunk
Commit 0a2eaa5ac2a71a322f8f960805e362f38f93bb5e
1 file changed +1 -1
+1 -1
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -198,11 +198,11 @@
198198
** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin;
199199
** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk');
200200
*/
201201
void cmd_sqlite3(void){
202202
extern int sqlite3_shell(int, char**);
203
- if( !find_option("no-repository", 0, 0)!=0 ){
203
+ if( find_option("no-repository", 0, 0)==0 ){
204204
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
205205
db_close(1);
206206
}
207207
sqlite3_shutdown();
208208
sqlite3_shell(g.argc-1, g.argv+1);
209209
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -198,11 +198,11 @@
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
--- src/sqlcmd.c
+++ src/sqlcmd.c
@@ -198,11 +198,11 @@
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

Keyboard Shortcuts

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