Check-in [0139767b9a]
Not logged in
Overview

SHA1 Hash:0139767b9a9a865e9b3ee0fe7c1b6b9b1f998627
Date: 2009-01-21 02:22:28
User: drh
Comment:When creating new repositories ("fossil new") label the initial empty check-in with a propagating symbolic tag "trunk".
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/db.c from [d80fba43ab] to [5247c90b26].

@@ -932,17 +932,18 @@
   db_create_default_users(0);
   user_select();
 
   if (makeInitialVersion){
     blob_zero(&manifest);
-    blob_appendf(&manifest, "C initial\\sempty\\sbaseline\n");
+    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);
     blob_appendf(&manifest, "P\n");
     md5sum_init();
     blob_appendf(&manifest, "R %s\n", md5sum_finish(0));
+    blob_appendf(&manifest, "T *sym-trunk *\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);

Modified src/manifest.c from [b133eff8a1] to [41e697c405].

@@ -603,11 +603,11 @@
       }
     }
   }
   if( !seenHeader ) goto manifest_syntax_error;
 
-  if( p->nFile>0 ){
+  if( p->nFile>0 || p->zRepoCksum!=0 ){
     if( p->nCChild>0 ) goto manifest_syntax_error;
     if( p->rDate==0.0 ) goto manifest_syntax_error;
     if( p->nField>0 ) goto manifest_syntax_error;
     if( p->zTicketUuid ) goto manifest_syntax_error;
     if( p->nAttach>0 ) goto manifest_syntax_error;