Differences From:
File
src/db.c
part of check-in
[ff4cc5fae2]
- Fixes to the timeline webpage and the "open" and "update" commands.
by
drh on
2007-09-23 18:49:50.
[view]
To:
File
src/db.c
part of check-in
[4dc622f36c]
- Fixed bug in open_cmd. As of ff4c, open now runs update --latest as well, which would err on a brand new, blank, database. open_cmd now only runs update --latest if the current pid != 0
by
jnc on
2007-09-23 22:27:56.
[view]
@@ -889,11 +889,13 @@
db_lset("repository", blob_str(&path));
vid = db_int(0, "SELECT pid FROM plink y"
" WHERE NOT EXISTS(SELECT 1 FROM plink x WHERE x.cid=y.pid)");
db_lset_int("checkout", vid);
- g.argv = azNewArgv;
- g.argc = 3;
- update_cmd();
+ if( vid!=0 ){
+ g.argv = azNewArgv;
+ g.argc = 3;
+ update_cmd();
+ }
}
/*
** COMMAND: config