Fossil SCM
Add a comment why the R-card is necessary in the initial empty check-in manifest.
Commit
4bf2708294bf6be1093c5d6b03cba0f230ecbca9
Parent
6a03e9329bbf336…
1 file changed
+3
M
src/db.c
+3
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -1401,10 +1401,13 @@ | ||
| 1401 | 1401 | blob_zero(&manifest); |
| 1402 | 1402 | blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n"); |
| 1403 | 1403 | zDate = date_in_standard_format(zInitialDate); |
| 1404 | 1404 | blob_appendf(&manifest, "D %s\n", zDate); |
| 1405 | 1405 | md5sum_init(); |
| 1406 | + /* The R-card is necessary here because without it | |
| 1407 | + * fossil versions earlier than versions 1.27 would | |
| 1408 | + * interpret this artifact as a "control". */ | |
| 1406 | 1409 | blob_appendf(&manifest, "R %s\n", md5sum_finish(0)); |
| 1407 | 1410 | blob_appendf(&manifest, "T *branch * trunk\n"); |
| 1408 | 1411 | blob_appendf(&manifest, "T *sym-trunk *\n"); |
| 1409 | 1412 | blob_appendf(&manifest, "U %F\n", g.zLogin); |
| 1410 | 1413 | md5sum_blob(&manifest, &hash); |
| 1411 | 1414 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1401,10 +1401,13 @@ | |
| 1401 | blob_zero(&manifest); |
| 1402 | blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n"); |
| 1403 | zDate = date_in_standard_format(zInitialDate); |
| 1404 | blob_appendf(&manifest, "D %s\n", zDate); |
| 1405 | md5sum_init(); |
| 1406 | blob_appendf(&manifest, "R %s\n", md5sum_finish(0)); |
| 1407 | blob_appendf(&manifest, "T *branch * trunk\n"); |
| 1408 | blob_appendf(&manifest, "T *sym-trunk *\n"); |
| 1409 | blob_appendf(&manifest, "U %F\n", g.zLogin); |
| 1410 | md5sum_blob(&manifest, &hash); |
| 1411 |
| --- src/db.c | |
| +++ src/db.c | |
| @@ -1401,10 +1401,13 @@ | |
| 1401 | blob_zero(&manifest); |
| 1402 | blob_appendf(&manifest, "C initial\\sempty\\scheck-in\n"); |
| 1403 | zDate = date_in_standard_format(zInitialDate); |
| 1404 | blob_appendf(&manifest, "D %s\n", zDate); |
| 1405 | md5sum_init(); |
| 1406 | /* The R-card is necessary here because without it |
| 1407 | * fossil versions earlier than versions 1.27 would |
| 1408 | * interpret this artifact as a "control". */ |
| 1409 | blob_appendf(&manifest, "R %s\n", md5sum_finish(0)); |
| 1410 | blob_appendf(&manifest, "T *branch * trunk\n"); |
| 1411 | blob_appendf(&manifest, "T *sym-trunk *\n"); |
| 1412 | blob_appendf(&manifest, "U %F\n", g.zLogin); |
| 1413 | md5sum_blob(&manifest, &hash); |
| 1414 |