Fossil SCM
Added a DELETED abc.xyz message when using fossil rm. This is the same as fossil add's ADDED abc.xyz message. Also, the word DELETED was choosen over REMOVED because fossil status reports the file as DELETED.
Commit
49ed1961b18f1121e0b0ca8f8f3a0c0f71724914
Parent
2bb1d6469f96de4…
1 file changed
+1
+1
| --- src/add.c | ||
| +++ src/add.c | ||
| @@ -198,10 +198,11 @@ | ||
| 198 | 198 | if( !db_exists( |
| 199 | 199 | "SELECT 1 FROM vfile WHERE pathname=%Q AND NOT deleted", zPath) ){ |
| 200 | 200 | fossil_fatal("not in the repository: %s", zName); |
| 201 | 201 | }else{ |
| 202 | 202 | db_multi_exec("UPDATE vfile SET deleted=1 WHERE pathname=%Q", zPath); |
| 203 | + printf("DELETED %s\n", zPath); | |
| 203 | 204 | } |
| 204 | 205 | blob_reset(&pathname); |
| 205 | 206 | free(zName); |
| 206 | 207 | } |
| 207 | 208 | db_multi_exec("DELETE FROM vfile WHERE deleted AND rid=0"); |
| 208 | 209 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -198,10 +198,11 @@ | |
| 198 | if( !db_exists( |
| 199 | "SELECT 1 FROM vfile WHERE pathname=%Q AND NOT deleted", zPath) ){ |
| 200 | fossil_fatal("not in the repository: %s", zName); |
| 201 | }else{ |
| 202 | db_multi_exec("UPDATE vfile SET deleted=1 WHERE pathname=%Q", zPath); |
| 203 | } |
| 204 | blob_reset(&pathname); |
| 205 | free(zName); |
| 206 | } |
| 207 | db_multi_exec("DELETE FROM vfile WHERE deleted AND rid=0"); |
| 208 |
| --- src/add.c | |
| +++ src/add.c | |
| @@ -198,10 +198,11 @@ | |
| 198 | if( !db_exists( |
| 199 | "SELECT 1 FROM vfile WHERE pathname=%Q AND NOT deleted", zPath) ){ |
| 200 | fossil_fatal("not in the repository: %s", zName); |
| 201 | }else{ |
| 202 | db_multi_exec("UPDATE vfile SET deleted=1 WHERE pathname=%Q", zPath); |
| 203 | printf("DELETED %s\n", zPath); |
| 204 | } |
| 205 | blob_reset(&pathname); |
| 206 | free(zName); |
| 207 | } |
| 208 | db_multi_exec("DELETE FROM vfile WHERE deleted AND rid=0"); |
| 209 |