Diff
Not logged in

Differences From:

File src/db.c part of check-in [7c7edde116] - Add the sym-trunk and newbranch tags to the root check-in when rebuilding. Also add the newbranch tag to the root check-in when creating a new repository. by drh on 2009-01-21 02:47:42. [view]

To:

File src/db.c part of check-in [54e7410c2a] - Make sure the initial empty check-in shows up in the timeline and branch lists of newly created repositories. by drh on 2009-01-21 18:12:11. [view]

@@ -932,8 +932,9 @@
   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';
@@ -946,9 +947,10 @@
     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);
   }
 }
 
 /*