Fossil SCM
When creating new repositories ("fossil new") label the initial empty check-in with a propagating symbolic tag "trunk".
Commit
0139767b9a9a865e9b3ee0fe7c1b6b9b1f998627
Parent
580d6ad8c747c7f…
2 files changed
+2
-1
+1
-1
M
src/db.c
+2
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -932,17 +932,18 @@ | ||
| 932 | 932 | db_create_default_users(0); |
| 933 | 933 | user_select(); |
| 934 | 934 | |
| 935 | 935 | if (makeInitialVersion){ |
| 936 | 936 | blob_zero(&manifest); |
| 937 | - blob_appendf(&manifest, "C initial\\sempty\\sbaseline\n"); | |
| 937 | + blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n"); | |
| 938 | 938 | zDate = db_text(0, "SELECT datetime('now')"); |
| 939 | 939 | zDate[10]='T'; |
| 940 | 940 | blob_appendf(&manifest, "D %s\n", zDate); |
| 941 | 941 | blob_appendf(&manifest, "P\n"); |
| 942 | 942 | md5sum_init(); |
| 943 | 943 | blob_appendf(&manifest, "R %s\n", md5sum_finish(0)); |
| 944 | + blob_appendf(&manifest, "T *sym-trunk *\n"); | |
| 944 | 945 | blob_appendf(&manifest, "U %F\n", g.zLogin); |
| 945 | 946 | md5sum_blob(&manifest, &hash); |
| 946 | 947 | blob_appendf(&manifest, "Z %b\n", &hash); |
| 947 | 948 | blob_reset(&hash); |
| 948 | 949 | content_put(&manifest, 0, 0); |
| 949 | 950 |
| --- 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 @@ | ||
| 603 | 603 | } |
| 604 | 604 | } |
| 605 | 605 | } |
| 606 | 606 | if( !seenHeader ) goto manifest_syntax_error; |
| 607 | 607 | |
| 608 | - if( p->nFile>0 ){ | |
| 608 | + if( p->nFile>0 || p->zRepoCksum!=0 ){ | |
| 609 | 609 | if( p->nCChild>0 ) goto manifest_syntax_error; |
| 610 | 610 | if( p->rDate==0.0 ) goto manifest_syntax_error; |
| 611 | 611 | if( p->nField>0 ) goto manifest_syntax_error; |
| 612 | 612 | if( p->zTicketUuid ) goto manifest_syntax_error; |
| 613 | 613 | if( p->nAttach>0 ) goto manifest_syntax_error; |
| 614 | 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 ){ |
| 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 |