Fossil SCM
Allow manifests with zero files. This fixes a problem in which some files do not appear in the filename table.
Commit
c8da83ca36c0d9a6805ed03e67dd1e5799954d51
Parent
d27a905b1f626da…
1 file changed
+9
-1
+9
-1
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -641,11 +641,19 @@ | ||
| 641 | 641 | if( p->zWikiTitle ) goto manifest_syntax_error; |
| 642 | 642 | if( p->zTicketUuid ) goto manifest_syntax_error; |
| 643 | 643 | if( !seenZ ) goto manifest_syntax_error; |
| 644 | 644 | p->type = CFTYPE_CONTROL; |
| 645 | 645 | }else{ |
| 646 | - goto manifest_syntax_error; | |
| 646 | + if( p->nCChild>0 ) goto manifest_syntax_error; | |
| 647 | + if( p->rDate==0.0 ) goto manifest_syntax_error; | |
| 648 | + if( p->nField>0 ) goto manifest_syntax_error; | |
| 649 | + if( p->zTicketUuid ) goto manifest_syntax_error; | |
| 650 | + if( p->nAttach>0 ) goto manifest_syntax_error; | |
| 651 | + if( p->zWiki ) goto manifest_syntax_error; | |
| 652 | + if( p->zWikiTitle ) goto manifest_syntax_error; | |
| 653 | + if( p->zTicketUuid ) goto manifest_syntax_error; | |
| 654 | + p->type = CFTYPE_MANIFEST; | |
| 647 | 655 | } |
| 648 | 656 | |
| 649 | 657 | md5sum_init(); |
| 650 | 658 | return 1; |
| 651 | 659 | |
| 652 | 660 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -641,11 +641,19 @@ | |
| 641 | if( p->zWikiTitle ) goto manifest_syntax_error; |
| 642 | if( p->zTicketUuid ) goto manifest_syntax_error; |
| 643 | if( !seenZ ) goto manifest_syntax_error; |
| 644 | p->type = CFTYPE_CONTROL; |
| 645 | }else{ |
| 646 | goto manifest_syntax_error; |
| 647 | } |
| 648 | |
| 649 | md5sum_init(); |
| 650 | return 1; |
| 651 | |
| 652 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -641,11 +641,19 @@ | |
| 641 | if( p->zWikiTitle ) goto manifest_syntax_error; |
| 642 | if( p->zTicketUuid ) goto manifest_syntax_error; |
| 643 | if( !seenZ ) goto manifest_syntax_error; |
| 644 | p->type = CFTYPE_CONTROL; |
| 645 | }else{ |
| 646 | if( p->nCChild>0 ) goto manifest_syntax_error; |
| 647 | if( p->rDate==0.0 ) goto manifest_syntax_error; |
| 648 | if( p->nField>0 ) goto manifest_syntax_error; |
| 649 | if( p->zTicketUuid ) goto manifest_syntax_error; |
| 650 | if( p->nAttach>0 ) goto manifest_syntax_error; |
| 651 | if( p->zWiki ) goto manifest_syntax_error; |
| 652 | if( p->zWikiTitle ) goto manifest_syntax_error; |
| 653 | if( p->zTicketUuid ) goto manifest_syntax_error; |
| 654 | p->type = CFTYPE_MANIFEST; |
| 655 | } |
| 656 | |
| 657 | md5sum_init(); |
| 658 | return 1; |
| 659 | |
| 660 |