Fossil SCM

Back out the change to svn_parse_path() for --flat --base, which made import --svn refuse a dump with a copy into the base from outside it, as a merge from a branch gives, where before it imported the base correctly.

dmestas 2026-11-20 21:35 UTC small-fixes
Commit 199163e45465878f5ce6c43ef9ddbe364ccf183b3a01eb666dbed1b0b2c4421e
1 file changed +2 -3
+2 -3
--- src/import.c
+++ src/import.c
@@ -1386,16 +1386,15 @@
13861386
}else{
13871387
zBranch = 0;
13881388
*type = SVN_UNKNOWN;
13891389
}
13901390
}else{
1391
- if( gsvn.lenBranches>0
1392
- && strncmp(zPath, gsvn.zBranches, gsvn.lenBranches)==0 ){
1391
+ if( strncmp(zPath, gsvn.zBranches, gsvn.lenBranches)==0 ){
13931392
*zFile = zBranch = zPath+gsvn.lenBranches;
13941393
*type = SVN_BRANCH;
13951394
}else
1396
- if( gsvn.lenTags>0 && strncmp(zPath, gsvn.zTags, gsvn.lenTags)==0 ){
1395
+ if( strncmp(zPath, gsvn.zTags, gsvn.lenTags)==0 ){
13971396
*zFile = zBranch = zPath+gsvn.lenTags;
13981397
*type = SVN_TAG;
13991398
}else{ /* Not a branch, tag or trunk */
14001399
return 0;
14011400
}
14021401
--- src/import.c
+++ src/import.c
@@ -1386,16 +1386,15 @@
1386 }else{
1387 zBranch = 0;
1388 *type = SVN_UNKNOWN;
1389 }
1390 }else{
1391 if( gsvn.lenBranches>0
1392 && strncmp(zPath, gsvn.zBranches, gsvn.lenBranches)==0 ){
1393 *zFile = zBranch = zPath+gsvn.lenBranches;
1394 *type = SVN_BRANCH;
1395 }else
1396 if( gsvn.lenTags>0 && strncmp(zPath, gsvn.zTags, gsvn.lenTags)==0 ){
1397 *zFile = zBranch = zPath+gsvn.lenTags;
1398 *type = SVN_TAG;
1399 }else{ /* Not a branch, tag or trunk */
1400 return 0;
1401 }
1402
--- src/import.c
+++ src/import.c
@@ -1386,16 +1386,15 @@
1386 }else{
1387 zBranch = 0;
1388 *type = SVN_UNKNOWN;
1389 }
1390 }else{
1391 if( strncmp(zPath, gsvn.zBranches, gsvn.lenBranches)==0 ){
 
1392 *zFile = zBranch = zPath+gsvn.lenBranches;
1393 *type = SVN_BRANCH;
1394 }else
1395 if( strncmp(zPath, gsvn.zTags, gsvn.lenTags)==0 ){
1396 *zFile = zBranch = zPath+gsvn.lenTags;
1397 *type = SVN_TAG;
1398 }else{ /* Not a branch, tag or trunk */
1399 return 0;
1400 }
1401

Keyboard Shortcuts

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