Fossil SCM

When creating new repositories ("fossil new") label the initial empty check-in with a propagating symbolic tag "trunk".

drh 2009-01-21 02:22 trunk
Commit 0139767b9a9a865e9b3ee0fe7c1b6b9b1f998627
2 files changed +2 -1 +1 -1
+2 -1
--- src/db.c
+++ src/db.c
@@ -932,17 +932,18 @@
932932
db_create_default_users(0);
933933
user_select();
934934
935935
if (makeInitialVersion){
936936
blob_zero(&manifest);
937
- blob_appendf(&manifest, "C initial\\sempty\\sbaseline\n");
937
+ blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n");
938938
zDate = db_text(0, "SELECT datetime('now')");
939939
zDate[10]='T';
940940
blob_appendf(&manifest, "D %s\n", zDate);
941941
blob_appendf(&manifest, "P\n");
942942
md5sum_init();
943943
blob_appendf(&manifest, "R %s\n", md5sum_finish(0));
944
+ blob_appendf(&manifest, "T *sym-trunk *\n");
944945
blob_appendf(&manifest, "U %F\n", g.zLogin);
945946
md5sum_blob(&manifest, &hash);
946947
blob_appendf(&manifest, "Z %b\n", &hash);
947948
blob_reset(&hash);
948949
content_put(&manifest, 0, 0);
949950
--- src/db.c
+++ src/db.c
@@ -932,17 +932,18 @@
932 db_create_default_users(0);
933 user_select();
934
935 if (makeInitialVersion){
936 blob_zero(&manifest);
937 blob_appendf(&manifest, "C initial\\sempty\\sbaseline\n");
938 zDate = db_text(0, "SELECT datetime('now')");
939 zDate[10]='T';
940 blob_appendf(&manifest, "D %s\n", zDate);
941 blob_appendf(&manifest, "P\n");
942 md5sum_init();
943 blob_appendf(&manifest, "R %s\n", md5sum_finish(0));
 
944 blob_appendf(&manifest, "U %F\n", g.zLogin);
945 md5sum_blob(&manifest, &hash);
946 blob_appendf(&manifest, "Z %b\n", &hash);
947 blob_reset(&hash);
948 content_put(&manifest, 0, 0);
949
--- src/db.c
+++ src/db.c
@@ -932,17 +932,18 @@
932 db_create_default_users(0);
933 user_select();
934
935 if (makeInitialVersion){
936 blob_zero(&manifest);
937 blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n");
938 zDate = db_text(0, "SELECT datetime('now')");
939 zDate[10]='T';
940 blob_appendf(&manifest, "D %s\n", zDate);
941 blob_appendf(&manifest, "P\n");
942 md5sum_init();
943 blob_appendf(&manifest, "R %s\n", md5sum_finish(0));
944 blob_appendf(&manifest, "T *sym-trunk *\n");
945 blob_appendf(&manifest, "U %F\n", g.zLogin);
946 md5sum_blob(&manifest, &hash);
947 blob_appendf(&manifest, "Z %b\n", &hash);
948 blob_reset(&hash);
949 content_put(&manifest, 0, 0);
950
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -603,11 +603,11 @@
603603
}
604604
}
605605
}
606606
if( !seenHeader ) goto manifest_syntax_error;
607607
608
- if( p->nFile>0 ){
608
+ if( p->nFile>0 || p->zRepoCksum!=0 ){
609609
if( p->nCChild>0 ) goto manifest_syntax_error;
610610
if( p->rDate==0.0 ) goto manifest_syntax_error;
611611
if( p->nField>0 ) goto manifest_syntax_error;
612612
if( p->zTicketUuid ) goto manifest_syntax_error;
613613
if( p->nAttach>0 ) goto manifest_syntax_error;
614614
--- src/manifest.c
+++ src/manifest.c
@@ -603,11 +603,11 @@
603 }
604 }
605 }
606 if( !seenHeader ) goto manifest_syntax_error;
607
608 if( p->nFile>0 ){
609 if( p->nCChild>0 ) goto manifest_syntax_error;
610 if( p->rDate==0.0 ) goto manifest_syntax_error;
611 if( p->nField>0 ) goto manifest_syntax_error;
612 if( p->zTicketUuid ) goto manifest_syntax_error;
613 if( p->nAttach>0 ) goto manifest_syntax_error;
614
--- src/manifest.c
+++ src/manifest.c
@@ -603,11 +603,11 @@
603 }
604 }
605 }
606 if( !seenHeader ) goto manifest_syntax_error;
607
608 if( p->nFile>0 || p->zRepoCksum!=0 ){
609 if( p->nCChild>0 ) goto manifest_syntax_error;
610 if( p->rDate==0.0 ) goto manifest_syntax_error;
611 if( p->nField>0 ) goto manifest_syntax_error;
612 if( p->zTicketUuid ) goto manifest_syntax_error;
613 if( p->nAttach>0 ) goto manifest_syntax_error;
614

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button