Fossil SCM
Don't copy all files on a tag
Commit
fb90d6c657c9db1efe4b6dc9e0ed880dad49f579
Parent
c8e00eb1f5e0492…
1 file changed
+1
-4
+1
-4
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1276,11 +1276,11 @@ | ||
| 1276 | 1276 | } |
| 1277 | 1277 | } |
| 1278 | 1278 | if( zKind==0 ){ |
| 1279 | 1279 | fossil_fatal("Missing Node-kind"); |
| 1280 | 1280 | }else if( strncmp(zKind, "dir", 3)==0 ){ |
| 1281 | - if( zSrcPath ){ | |
| 1281 | + if( zSrcPath && branchType!=SVN_TAG ){ | |
| 1282 | 1282 | if( srcRid>0 ){ |
| 1283 | 1283 | if( zFile[0]==0 ){ |
| 1284 | 1284 | db_bind_text(&cpyRoot, ":path", zFile); |
| 1285 | 1285 | db_bind_int(&cpyRoot, ":branch", branchId); |
| 1286 | 1286 | db_bind_int(&cpyRoot, ":rid", srcRid); |
| @@ -1292,13 +1292,10 @@ | ||
| 1292 | 1292 | db_bind_text(&cpyPath, ":srcpath", zSrcFile); |
| 1293 | 1293 | db_bind_int(&cpyPath, ":rid", srcRid); |
| 1294 | 1294 | db_step(&cpyPath); |
| 1295 | 1295 | db_reset(&cpyPath); |
| 1296 | 1296 | } |
| 1297 | - db_bind_int(&addRev, ":branch", branchId); | |
| 1298 | - db_step(&addRev); | |
| 1299 | - db_reset(&addRev); | |
| 1300 | 1297 | } |
| 1301 | 1298 | } |
| 1302 | 1299 | }else{ |
| 1303 | 1300 | int rid = 0; |
| 1304 | 1301 | if( zSrcPath ){ |
| 1305 | 1302 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1276,11 +1276,11 @@ | |
| 1276 | } |
| 1277 | } |
| 1278 | if( zKind==0 ){ |
| 1279 | fossil_fatal("Missing Node-kind"); |
| 1280 | }else if( strncmp(zKind, "dir", 3)==0 ){ |
| 1281 | if( zSrcPath ){ |
| 1282 | if( srcRid>0 ){ |
| 1283 | if( zFile[0]==0 ){ |
| 1284 | db_bind_text(&cpyRoot, ":path", zFile); |
| 1285 | db_bind_int(&cpyRoot, ":branch", branchId); |
| 1286 | db_bind_int(&cpyRoot, ":rid", srcRid); |
| @@ -1292,13 +1292,10 @@ | |
| 1292 | db_bind_text(&cpyPath, ":srcpath", zSrcFile); |
| 1293 | db_bind_int(&cpyPath, ":rid", srcRid); |
| 1294 | db_step(&cpyPath); |
| 1295 | db_reset(&cpyPath); |
| 1296 | } |
| 1297 | db_bind_int(&addRev, ":branch", branchId); |
| 1298 | db_step(&addRev); |
| 1299 | db_reset(&addRev); |
| 1300 | } |
| 1301 | } |
| 1302 | }else{ |
| 1303 | int rid = 0; |
| 1304 | if( zSrcPath ){ |
| 1305 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1276,11 +1276,11 @@ | |
| 1276 | } |
| 1277 | } |
| 1278 | if( zKind==0 ){ |
| 1279 | fossil_fatal("Missing Node-kind"); |
| 1280 | }else if( strncmp(zKind, "dir", 3)==0 ){ |
| 1281 | if( zSrcPath && branchType!=SVN_TAG ){ |
| 1282 | if( srcRid>0 ){ |
| 1283 | if( zFile[0]==0 ){ |
| 1284 | db_bind_text(&cpyRoot, ":path", zFile); |
| 1285 | db_bind_int(&cpyRoot, ":branch", branchId); |
| 1286 | db_bind_int(&cpyRoot, ":rid", srcRid); |
| @@ -1292,13 +1292,10 @@ | |
| 1292 | db_bind_text(&cpyPath, ":srcpath", zSrcFile); |
| 1293 | db_bind_int(&cpyPath, ":rid", srcRid); |
| 1294 | db_step(&cpyPath); |
| 1295 | db_reset(&cpyPath); |
| 1296 | } |
| 1297 | } |
| 1298 | } |
| 1299 | }else{ |
| 1300 | int rid = 0; |
| 1301 | if( zSrcPath ){ |
| 1302 |