Check-in [54e7410c2a]
Not logged in
Overview

SHA1 Hash:54e7410c2ad6a2e2f7a74cc4e7eb7542d48d9859
Date: 2009-01-21 18:12:11
User: drh
Comment:Make sure the initial empty check-in shows up in the timeline and branch lists of newly created repositories.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/db.c from [7c76208342] to [47c06ea3d7].

@@ -931,10 +931,11 @@
   if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0);
   db_create_default_users(0);
   user_select();
 
   if (makeInitialVersion){
+    int rid;
     blob_zero(&manifest);
     blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n");
     zDate = db_text(0, "SELECT datetime('now')");
     zDate[10]='T';
     blob_appendf(&manifest, "D %s\n", zDate);
@@ -945,11 +946,12 @@
     blob_appendf(&manifest, "T +newbranch *\n");
     blob_appendf(&manifest, "U %F\n", g.zLogin);
     md5sum_blob(&manifest, &hash);
     blob_appendf(&manifest, "Z %b\n", &hash);
     blob_reset(&hash);
-    content_put(&manifest, 0, 0);
+    rid = content_put(&manifest, 0, 0);
+    manifest_crosslink(rid, &manifest);
   }
 }
 
 /*
 ** COMMAND: new