Fossil SCM
In import --svn, treat a node record that comes before any revision record as a broken dump. Its files were added to the next revision.
Commit
2a02aabd9a043f9f9a855f697dea3f932ad9263f5a8d1cb931430c0995a33b6f
Parent
cf4e1410178adf2…
1 file changed
+1
-1
+1
-1
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1549,11 +1549,11 @@ | ||
| 1549 | 1549 | } |
| 1550 | 1550 | if( branchId==0 ){ |
| 1551 | 1551 | svn_free_rec(&rec); |
| 1552 | 1552 | continue; |
| 1553 | 1553 | } |
| 1554 | - if( zAction==0 ){ | |
| 1554 | + if( zAction==0 || gsvn.rev<0 ){ | |
| 1555 | 1555 | fossil_fatal("svn-dump data format broken"); |
| 1556 | 1556 | } |
| 1557 | 1557 | if( zFile[0]==0 ){ |
| 1558 | 1558 | if( zKind!=0 && strncmp(zKind, "dir", 3)!=0 ){ |
| 1559 | 1559 | svn_free_rec(&rec); |
| 1560 | 1560 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1549,11 +1549,11 @@ | |
| 1549 | } |
| 1550 | if( branchId==0 ){ |
| 1551 | svn_free_rec(&rec); |
| 1552 | continue; |
| 1553 | } |
| 1554 | if( zAction==0 ){ |
| 1555 | fossil_fatal("svn-dump data format broken"); |
| 1556 | } |
| 1557 | if( zFile[0]==0 ){ |
| 1558 | if( zKind!=0 && strncmp(zKind, "dir", 3)!=0 ){ |
| 1559 | svn_free_rec(&rec); |
| 1560 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1549,11 +1549,11 @@ | |
| 1549 | } |
| 1550 | if( branchId==0 ){ |
| 1551 | svn_free_rec(&rec); |
| 1552 | continue; |
| 1553 | } |
| 1554 | if( zAction==0 || gsvn.rev<0 ){ |
| 1555 | fossil_fatal("svn-dump data format broken"); |
| 1556 | } |
| 1557 | if( zFile[0]==0 ){ |
| 1558 | if( zKind!=0 && strncmp(zKind, "dir", 3)!=0 ){ |
| 1559 | svn_free_rec(&rec); |
| 1560 |