Differences From Artifact [f0402d199e]:
- File src/clone.c — part of check-in [00ac7945a9] at 2009-08-13 14:27:24 on branch trunk — Disconnect the global configuration database in ~/.fossil from the respository database in most cases. This allows multiple "sync" or "commit" operations to be running on different repositories at the same time. (user: drh size: 3055)
To Artifact [70ab216ac2]:
- File src/clone.c — part of check-in [02a584f7f5] at 2009-08-26 18:25:48 on branch trunk — Add the --private option to the "fossil commit" command. This option creates a private branch which is never pushed. (user: drh size: 3230) [more...]
| ︙ | |||
56 57 58 59 60 61 62 63 64 65 66 67 68 69 | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | + + + + + + |
db_multi_exec(
"REPLACE INTO config(name,value)"
" VALUES('server-code', lower(hex(randomblob(20))));"
"REPLACE INTO config(name,value)"
" VALUES('last-sync-url', '%q');",
g.urlCanonical
);
db_multi_exec(
"DELETE FROM blob WHERE rid IN private;"
"DELETE FROM delta wHERE rid IN private;"
"DELETE FROM private;"
);
shun_artifacts();
g.zLogin = db_text(0, "SELECT login FROM user WHERE cap LIKE '%%s%%'");
if( g.zLogin==0 ){
db_create_default_users(1);
}
printf("Repository cloned into %s\n", g.argv[3]);
}else{
db_create_repository(g.argv[3]);
|
| ︙ |