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.

dmestas 2026-11-20 21:26 UTC small-fixes
Commit 2a02aabd9a043f9f9a855f697dea3f932ad9263f5a8d1cb931430c0995a33b6f
1 file changed +1 -1
+1 -1
--- src/import.c
+++ src/import.c
@@ -1549,11 +1549,11 @@
15491549
}
15501550
if( branchId==0 ){
15511551
svn_free_rec(&rec);
15521552
continue;
15531553
}
1554
- if( zAction==0 ){
1554
+ if( zAction==0 || gsvn.rev<0 ){
15551555
fossil_fatal("svn-dump data format broken");
15561556
}
15571557
if( zFile[0]==0 ){
15581558
if( zKind!=0 && strncmp(zKind, "dir", 3)!=0 ){
15591559
svn_free_rec(&rec);
15601560
--- 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

Keyboard Shortcuts

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