Overview
SHA1 Hash: | 4dc622f36c5aec900cd8039d4087f578afe31eb3 |
---|---|
Date: | 2007-09-23 22:27:56 |
User: | jnc |
Comment: | 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 |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/db.c from [0660888f68] to [6ce289dbfa].
@@ -888,13 +888,15 @@ db_open_local(); 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 **