Fossil SCM
If files named on the "fossil add" command are not present, make that a warning rather than a fatal error.
Commit
810976a7502ef631278d306a2bac866e44a5bb1e
Parent
432306beca45e1f…
1 file changed
+1
-1
+1
-1
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -252,11 +252,11 @@ | ||
| 252 | 252 | zName = blob_str(&fullName); |
| 253 | 253 | isDir = file_wd_isdir(zName); |
| 254 | 254 | if( isDir==1 ){ |
| 255 | 255 | vfile_scan(&fullName, nRoot-1, includeDotFiles, pIgnore); |
| 256 | 256 | }else if( isDir==0 ){ |
| 257 | - fossil_fatal("not found: %s", zName); | |
| 257 | + fossil_warning("not found: %s", zName); | |
| 258 | 258 | }else if( file_access(zName, R_OK) ){ |
| 259 | 259 | fossil_fatal("cannot open %s", zName); |
| 260 | 260 | }else{ |
| 261 | 261 | char *zTreeName = &zName[nRoot]; |
| 262 | 262 | db_multi_exec( |
| 263 | 263 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -252,11 +252,11 @@ | |
| 252 | zName = blob_str(&fullName); |
| 253 | isDir = file_wd_isdir(zName); |
| 254 | if( isDir==1 ){ |
| 255 | vfile_scan(&fullName, nRoot-1, includeDotFiles, pIgnore); |
| 256 | }else if( isDir==0 ){ |
| 257 | fossil_fatal("not found: %s", zName); |
| 258 | }else if( file_access(zName, R_OK) ){ |
| 259 | fossil_fatal("cannot open %s", zName); |
| 260 | }else{ |
| 261 | char *zTreeName = &zName[nRoot]; |
| 262 | db_multi_exec( |
| 263 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -252,11 +252,11 @@ | |
| 252 | zName = blob_str(&fullName); |
| 253 | isDir = file_wd_isdir(zName); |
| 254 | if( isDir==1 ){ |
| 255 | vfile_scan(&fullName, nRoot-1, includeDotFiles, pIgnore); |
| 256 | }else if( isDir==0 ){ |
| 257 | fossil_warning("not found: %s", zName); |
| 258 | }else if( file_access(zName, R_OK) ){ |
| 259 | fossil_fatal("cannot open %s", zName); |
| 260 | }else{ |
| 261 | char *zTreeName = &zName[nRoot]; |
| 262 | db_multi_exec( |
| 263 |