Differences From:
File
src/clone.c
part of check-in
[9236f0c086]
- Get cloning working for local files without the use of network I/O.
Ticket b3482d580e.
by
drh on
2008-10-05 12:34:14.
[view]
To:
File
src/clone.c
part of check-in
[2bd0690fe8]
- Add the "all rebuild" subcommand. Be more aggressive about adding
repositories to the repository list.
by
drh on
2008-10-17 12:31:26.
[view]
@@ -50,8 +50,9 @@
if( g.urlIsFile ){
file_copy(g.urlName, g.argv[3]);
db_close();
db_open_repository(g.argv[3]);
+ db_record_repository_filename(g.argv[3]);
db_multi_exec(
"REPLACE INTO config(name,value)"
" VALUES('server-code', lower(hex(randomblob(20))));"
);
@@ -59,8 +60,9 @@
}else{
db_create_repository(g.argv[3]);
db_open_repository(g.argv[3]);
db_begin_transaction();
+ db_record_repository_filename(g.argv[3]);
db_initial_setup(0, 0);
user_select();
db_set("content-schema", CONTENT_SCHEMA, 0);
db_set("aux-schema", AUX_SCHEMA, 0);