Fossil SCM

Allow manifests with zero files. This fixes a problem in which some files do not appear in the filename table.

drh 2008-02-04 17:34 trunk
Commit c8da83ca36c0d9a6805ed03e67dd1e5799954d51
1 file changed +9 -1
+9 -1
--- src/manifest.c
+++ src/manifest.c
@@ -641,11 +641,19 @@
641641
if( p->zWikiTitle ) goto manifest_syntax_error;
642642
if( p->zTicketUuid ) goto manifest_syntax_error;
643643
if( !seenZ ) goto manifest_syntax_error;
644644
p->type = CFTYPE_CONTROL;
645645
}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;
647655
}
648656
649657
md5sum_init();
650658
return 1;
651659
652660
--- 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

Keyboard Shortcuts

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