Differences From Artifact [2daa17c5f0]:
- File src/clone.c — part of check-in [2bd0690fe8] at 2008-10-17 12:31:26 on branch trunk — Add the "all rebuild" subcommand. Be more aggressive about adding repositories to the repository list. (user: drh size: 2528)
To Artifact [ac6a2f8b2b]:
- File src/clone.c — part of check-in [974f025c6e] at 2008-10-17 13:30:46 on branch trunk — Update the "info" command so that it can take the name of a repository as its argument and then report information about that repository. (user: drh size: 2550)
| ︙ | |||
47 48 49 50 51 52 53 54 55 56 57 58 59 60 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | + |
fossil_panic("file already exists: %s", g.argv[3]);
}
url_parse(g.argv[2]);
if( g.urlIsFile ){
file_copy(g.urlName, g.argv[3]);
db_close();
db_open_repository(g.argv[3]);
db_open_config();
db_record_repository_filename(g.argv[3]);
db_multi_exec(
"REPLACE INTO config(name,value)"
" VALUES('server-code', lower(hex(randomblob(20))));"
);
printf("Repository cloned into %s\n", g.argv[3]);
}else{
|
| ︙ |