Fossil SCM

Ignore Subversion property changes when importing. Property changes were previously interpreted as changing a file to be empty.

andygoth 2016-05-14 13:10 andygoth-svn-import
Commit ed7905b64da56ae4b3652b2b2b51157bc98cc93e
1 file changed +1 -1
+1 -1
--- src/import.c
+++ src/import.c
@@ -1477,11 +1477,11 @@
14771477
if( strncmp(zAction, "change", 6)==0 ){
14781478
int rid = 0;
14791479
if( zKind==0 ){
14801480
fossil_fatal("Missing Node-kind");
14811481
}
1482
- if( strncmp(zKind, "dir", 3)!=0 ){
1482
+ if( rec.contentFlag && strncmp(zKind, "dir", 3)!=0 ){
14831483
if( deltaFlag ){
14841484
Blob deltaSrc;
14851485
Blob target;
14861486
rid = db_int(0, "SELECT rid FROM blob WHERE uuid=("
14871487
" SELECT tuuid FROM xfiles"
14881488
--- src/import.c
+++ src/import.c
@@ -1477,11 +1477,11 @@
1477 if( strncmp(zAction, "change", 6)==0 ){
1478 int rid = 0;
1479 if( zKind==0 ){
1480 fossil_fatal("Missing Node-kind");
1481 }
1482 if( strncmp(zKind, "dir", 3)!=0 ){
1483 if( deltaFlag ){
1484 Blob deltaSrc;
1485 Blob target;
1486 rid = db_int(0, "SELECT rid FROM blob WHERE uuid=("
1487 " SELECT tuuid FROM xfiles"
1488
--- src/import.c
+++ src/import.c
@@ -1477,11 +1477,11 @@
1477 if( strncmp(zAction, "change", 6)==0 ){
1478 int rid = 0;
1479 if( zKind==0 ){
1480 fossil_fatal("Missing Node-kind");
1481 }
1482 if( rec.contentFlag && strncmp(zKind, "dir", 3)!=0 ){
1483 if( deltaFlag ){
1484 Blob deltaSrc;
1485 Blob target;
1486 rid = db_int(0, "SELECT rid FROM blob WHERE uuid=("
1487 " SELECT tuuid FROM xfiles"
1488

Keyboard Shortcuts

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