Fossil SCM

Allow uv delete (or del) as an alias for uv remove or uv rm

andygoth 2016-11-15 23:41 trunk
Commit b59fa7d0e731502fe917fd4606b30fc6d81a08d8
1 file changed +4 -2
--- src/unversioned.c
+++ src/unversioned.c
@@ -238,11 +238,12 @@
238238
**
239239
** Options:
240240
** -v|--verbose Extra diagnostic output
241241
** -n|--dryrun Show what would have happened
242242
**
243
-** remove | rm FILE ... Remove unversioned files from the local repository.
243
+** remove|rm|delete FILE ...
244
+** Remove unversioned files from the local repository.
244245
** Changes are not pushed to other repositories until
245246
** the next sync.
246247
**
247248
** sync ?URL? Synchronize the state of all unversioned files with
248249
** the remote repository URL. The most recent version
@@ -410,11 +411,12 @@
410411
}else if( memcmp(zCmd, "revert", nCmd)==0 ){
411412
unsigned syncFlags = unversioned_sync_flags(SYNC_UNVERSIONED|SYNC_UV_REVERT);
412413
g.argv[1] = "sync";
413414
g.argv[2] = "--uv-noop";
414415
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 ){
416418
int i;
417419
verify_all_options();
418420
db_begin_transaction();
419421
for(i=3; i<g.argc; i++){
420422
db_multi_exec(
421423
--- 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

Keyboard Shortcuts

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