Differences From:
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]
To:
File
src/db.c
part of check-in
[746a0b8588]
- One more minor change to the fix of ff4c, set the current checkout to 1 if this is a brand new file.
by
jnc on
2007-09-23 23:05:42.
[view]
@@ -889,9 +889,11 @@
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);
- if( vid!=0 ){
+ if( vid==0 ){
+ db_lset_int("checkout", 1);
+ }else{
g.argv = azNewArgv;
g.argc = 3;
update_cmd();
}