Fossil

Check-in [10f753a3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Patch from Peter Spjuth to allow greater concurrency for "fossil clone".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:10f753a3ce924c50456d1bbcba3002c7f60fde967fd9fc45614a3f52a7778594
User & Date: drh 2017-12-21 23:00:05
Context
2017-12-22
13:01
Remove an unused static variable. Update the style guidelines to mention that imported code does not necessarily follow the guidelines. check-in: 8a53d401 user: drh tags: trunk
2017-12-21
23:00
Patch from Peter Spjuth to allow greater concurrency for "fossil clone". check-in: 10f753a3 user: drh tags: trunk
15:38
Update referenced OpenSSL version. check-in: c4aec887 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/clone.c.

164
165
166
167
168
169
170

171
172

173
174
175
176
177
178
179
    if( zDefaultUser ){
      g.zLogin = zDefaultUser;
    }else{
      g.zLogin = db_text(0, "SELECT login FROM user WHERE cap LIKE '%%s%%'");
    }
    fossil_print("Repository cloned into %s\n", g.argv[3]);
  }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, zDefaultUser);
    user_select();
    db_set("content-schema", CONTENT_SCHEMA, 0);
    db_set("aux-schema", AUX_SCHEMA_MAX, 0);
    db_set("rebuilt", get_version(), 0);







>


>







164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
    if( zDefaultUser ){
      g.zLogin = zDefaultUser;
    }else{
      g.zLogin = db_text(0, "SELECT login FROM user WHERE cap LIKE '%%s%%'");
    }
    fossil_print("Repository cloned into %s\n", g.argv[3]);
  }else{
    db_close_config();
    db_create_repository(g.argv[3]);
    db_open_repository(g.argv[3]);
    db_open_config(0,0);
    db_begin_transaction();
    db_record_repository_filename(g.argv[3]);
    db_initial_setup(0, 0, zDefaultUser);
    user_select();
    db_set("content-schema", CONTENT_SCHEMA, 0);
    db_set("aux-schema", AUX_SCHEMA_MAX, 0);
    db_set("rebuilt", get_version(), 0);