Fossil SCM
Allow uv delete (or del) as an alias for uv remove or uv rm
Commit
b59fa7d0e731502fe917fd4606b30fc6d81a08d8
Parent
f9080683f043716…
1 file changed
+4
-2
+4
-2
| --- src/unversioned.c | ||
| +++ src/unversioned.c | ||
| @@ -238,11 +238,12 @@ | ||
| 238 | 238 | ** |
| 239 | 239 | ** Options: |
| 240 | 240 | ** -v|--verbose Extra diagnostic output |
| 241 | 241 | ** -n|--dryrun Show what would have happened |
| 242 | 242 | ** |
| 243 | -** remove | rm FILE ... Remove unversioned files from the local repository. | |
| 243 | +** remove|rm|delete FILE ... | |
| 244 | +** Remove unversioned files from the local repository. | |
| 244 | 245 | ** Changes are not pushed to other repositories until |
| 245 | 246 | ** the next sync. |
| 246 | 247 | ** |
| 247 | 248 | ** sync ?URL? Synchronize the state of all unversioned files with |
| 248 | 249 | ** the remote repository URL. The most recent version |
| @@ -410,11 +411,12 @@ | ||
| 410 | 411 | }else if( memcmp(zCmd, "revert", nCmd)==0 ){ |
| 411 | 412 | unsigned syncFlags = unversioned_sync_flags(SYNC_UNVERSIONED|SYNC_UV_REVERT); |
| 412 | 413 | g.argv[1] = "sync"; |
| 413 | 414 | g.argv[2] = "--uv-noop"; |
| 414 | 415 | sync_unversioned(syncFlags); |
| 415 | - }else if( memcmp(zCmd, "remove", nCmd)==0 || memcmp(zCmd, "rm", nCmd)==0 ){ | |
| 416 | + }else if( memcmp(zCmd, "remove", nCmd)==0 || memcmp(zCmd, "rm", nCmd)==0 | |
| 417 | + || memcmp(zCmd, "delete", nCmd)==0 ){ | |
| 416 | 418 | int i; |
| 417 | 419 | verify_all_options(); |
| 418 | 420 | db_begin_transaction(); |
| 419 | 421 | for(i=3; i<g.argc; i++){ |
| 420 | 422 | db_multi_exec( |
| 421 | 423 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -238,11 +238,12 @@ | |
| 238 | ** |
| 239 | ** Options: |
| 240 | ** -v|--verbose Extra diagnostic output |
| 241 | ** -n|--dryrun Show what would have happened |
| 242 | ** |
| 243 | ** remove | rm FILE ... Remove unversioned files from the local repository. |
| 244 | ** Changes are not pushed to other repositories until |
| 245 | ** the next sync. |
| 246 | ** |
| 247 | ** sync ?URL? Synchronize the state of all unversioned files with |
| 248 | ** the remote repository URL. The most recent version |
| @@ -410,11 +411,12 @@ | |
| 410 | }else if( memcmp(zCmd, "revert", nCmd)==0 ){ |
| 411 | unsigned syncFlags = unversioned_sync_flags(SYNC_UNVERSIONED|SYNC_UV_REVERT); |
| 412 | g.argv[1] = "sync"; |
| 413 | g.argv[2] = "--uv-noop"; |
| 414 | sync_unversioned(syncFlags); |
| 415 | }else if( memcmp(zCmd, "remove", nCmd)==0 || memcmp(zCmd, "rm", nCmd)==0 ){ |
| 416 | int i; |
| 417 | verify_all_options(); |
| 418 | db_begin_transaction(); |
| 419 | for(i=3; i<g.argc; i++){ |
| 420 | db_multi_exec( |
| 421 |
| --- src/unversioned.c | |
| +++ src/unversioned.c | |
| @@ -238,11 +238,12 @@ | |
| 238 | ** |
| 239 | ** Options: |
| 240 | ** -v|--verbose Extra diagnostic output |
| 241 | ** -n|--dryrun Show what would have happened |
| 242 | ** |
| 243 | ** remove|rm|delete FILE ... |
| 244 | ** Remove unversioned files from the local repository. |
| 245 | ** Changes are not pushed to other repositories until |
| 246 | ** the next sync. |
| 247 | ** |
| 248 | ** sync ?URL? Synchronize the state of all unversioned files with |
| 249 | ** the remote repository URL. The most recent version |
| @@ -410,11 +411,12 @@ | |
| 411 | }else if( memcmp(zCmd, "revert", nCmd)==0 ){ |
| 412 | unsigned syncFlags = unversioned_sync_flags(SYNC_UNVERSIONED|SYNC_UV_REVERT); |
| 413 | g.argv[1] = "sync"; |
| 414 | g.argv[2] = "--uv-noop"; |
| 415 | sync_unversioned(syncFlags); |
| 416 | }else if( memcmp(zCmd, "remove", nCmd)==0 || memcmp(zCmd, "rm", nCmd)==0 |
| 417 | || memcmp(zCmd, "delete", nCmd)==0 ){ |
| 418 | int i; |
| 419 | verify_all_options(); |
| 420 | db_begin_transaction(); |
| 421 | for(i=3; i<g.argc; i++){ |
| 422 | db_multi_exec( |
| 423 |