Fossil SCM
This seems to fix the missing is-sorted check in manifest_parse(), but (A) it needs more testing and (B) could use a better error message than the one it ends up generating.
Commit
2e7a0aacdb1ff31e1744665b4219ee1b8598ea7c8d279490c843e631bd1a95c1
Parent
1cd6c545ca3a9c6…
1 file changed
+1
+1
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -538,10 +538,11 @@ | ||
| 538 | 538 | x.atEol = 1; |
| 539 | 539 | while( (cType = next_card(&x))!=0 && cType>=cPrevType ){ |
| 540 | 540 | lineNo++; |
| 541 | 541 | if( cType<'A' || cType>'Z' ) SYNTAX("bad card type"); |
| 542 | 542 | seenCard |= 1 << (cType-'A'); |
| 543 | + cPrevType = cType; | |
| 543 | 544 | switch( cType ){ |
| 544 | 545 | /* |
| 545 | 546 | ** A <filename> <target> ?<source>? |
| 546 | 547 | ** |
| 547 | 548 | ** Identifies an attachment to either a wiki page or a ticket. |
| 548 | 549 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -538,10 +538,11 @@ | |
| 538 | x.atEol = 1; |
| 539 | while( (cType = next_card(&x))!=0 && cType>=cPrevType ){ |
| 540 | lineNo++; |
| 541 | if( cType<'A' || cType>'Z' ) SYNTAX("bad card type"); |
| 542 | seenCard |= 1 << (cType-'A'); |
| 543 | switch( cType ){ |
| 544 | /* |
| 545 | ** A <filename> <target> ?<source>? |
| 546 | ** |
| 547 | ** Identifies an attachment to either a wiki page or a ticket. |
| 548 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -538,10 +538,11 @@ | |
| 538 | x.atEol = 1; |
| 539 | while( (cType = next_card(&x))!=0 && cType>=cPrevType ){ |
| 540 | lineNo++; |
| 541 | if( cType<'A' || cType>'Z' ) SYNTAX("bad card type"); |
| 542 | seenCard |= 1 << (cType-'A'); |
| 543 | cPrevType = cType; |
| 544 | switch( cType ){ |
| 545 | /* |
| 546 | ** A <filename> <target> ?<source>? |
| 547 | ** |
| 548 | ** Identifies an attachment to either a wiki page or a ticket. |
| 549 |