Fossil SCM
In import --svn, check for the Node-action header only on nodes that are imported, so that a node outside the trunk, branches and tags is skipped as before.
Commit
5f9b4de2d12287ad21662e9140275101d8eeed29254e41fa9c57ff36823d4a93
Parent
c4f2b4c56cba95a…
1 file changed
+3
-3
+3
-3
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1529,20 +1529,20 @@ | ||
| 1529 | 1529 | char *zKind = svn_find_header(rec, "Node-kind"); |
| 1530 | 1530 | char *zPerm = svn_find_prop(rec, "svn:executable") ? "x" : 0; |
| 1531 | 1531 | int deltaFlag = 0; |
| 1532 | 1532 | int srcRev = 0; |
| 1533 | 1533 | |
| 1534 | - if( zAction==0 ){ | |
| 1535 | - fossil_fatal("svn-dump data format broken"); | |
| 1536 | - } | |
| 1537 | 1534 | if ( zPerm==0 ){ |
| 1538 | 1535 | zPerm = svn_find_prop(rec, "svn:special") ? "l" : 0; |
| 1539 | 1536 | } |
| 1540 | 1537 | if( branchId==0 ){ |
| 1541 | 1538 | svn_free_rec(&rec); |
| 1542 | 1539 | continue; |
| 1543 | 1540 | } |
| 1541 | + if( zAction==0 ){ | |
| 1542 | + fossil_fatal("svn-dump data format broken"); | |
| 1543 | + } | |
| 1544 | 1544 | if( (zTemp = svn_find_header(rec, "Text-delta")) ){ |
| 1545 | 1545 | deltaFlag = strncmp(zTemp, "true", 4)==0; |
| 1546 | 1546 | } |
| 1547 | 1547 | if( strncmp(zAction, "delete", 6)==0 |
| 1548 | 1548 | || strncmp(zAction, "replace", 7)==0 ) |
| 1549 | 1549 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1529,20 +1529,20 @@ | |
| 1529 | char *zKind = svn_find_header(rec, "Node-kind"); |
| 1530 | char *zPerm = svn_find_prop(rec, "svn:executable") ? "x" : 0; |
| 1531 | int deltaFlag = 0; |
| 1532 | int srcRev = 0; |
| 1533 | |
| 1534 | if( zAction==0 ){ |
| 1535 | fossil_fatal("svn-dump data format broken"); |
| 1536 | } |
| 1537 | if ( zPerm==0 ){ |
| 1538 | zPerm = svn_find_prop(rec, "svn:special") ? "l" : 0; |
| 1539 | } |
| 1540 | if( branchId==0 ){ |
| 1541 | svn_free_rec(&rec); |
| 1542 | continue; |
| 1543 | } |
| 1544 | if( (zTemp = svn_find_header(rec, "Text-delta")) ){ |
| 1545 | deltaFlag = strncmp(zTemp, "true", 4)==0; |
| 1546 | } |
| 1547 | if( strncmp(zAction, "delete", 6)==0 |
| 1548 | || strncmp(zAction, "replace", 7)==0 ) |
| 1549 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1529,20 +1529,20 @@ | |
| 1529 | char *zKind = svn_find_header(rec, "Node-kind"); |
| 1530 | char *zPerm = svn_find_prop(rec, "svn:executable") ? "x" : 0; |
| 1531 | int deltaFlag = 0; |
| 1532 | int srcRev = 0; |
| 1533 | |
| 1534 | if ( zPerm==0 ){ |
| 1535 | zPerm = svn_find_prop(rec, "svn:special") ? "l" : 0; |
| 1536 | } |
| 1537 | if( branchId==0 ){ |
| 1538 | svn_free_rec(&rec); |
| 1539 | continue; |
| 1540 | } |
| 1541 | if( zAction==0 ){ |
| 1542 | fossil_fatal("svn-dump data format broken"); |
| 1543 | } |
| 1544 | if( (zTemp = svn_find_header(rec, "Text-delta")) ){ |
| 1545 | deltaFlag = strncmp(zTemp, "true", 4)==0; |
| 1546 | } |
| 1547 | if( strncmp(zAction, "delete", 6)==0 |
| 1548 | || strncmp(zAction, "replace", 7)==0 ) |
| 1549 |