Fossil SCM

Always print a warning if "fossil clean" is unable to remove a file, even if the --verbose option is omitted.

drh 2015-11-03 01:20 UTC clean-cmd-cleanup
Commit 6c2a2087d2c4ad9fdfa69a23badd04d4cab5f371
1 file changed +1 -1
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -833,11 +833,11 @@
833833
}
834834
if( dryRunFlag || file_delete(zName)==0 ){
835835
if( verboseFlag || dryRunFlag ){
836836
fossil_print("Removed unmanaged file: %s\n", zName+nRoot);
837837
}
838
- }else if( verboseFlag ){
838
+ }else{
839839
fossil_print("Could not remove file: %s\n", zName+nRoot);
840840
}
841841
}
842842
db_finalize(&q);
843843
if( !dryRunFlag && !disableUndo ) undo_finish();
844844
--- src/checkin.c
+++ src/checkin.c
@@ -833,11 +833,11 @@
833 }
834 if( dryRunFlag || file_delete(zName)==0 ){
835 if( verboseFlag || dryRunFlag ){
836 fossil_print("Removed unmanaged file: %s\n", zName+nRoot);
837 }
838 }else if( verboseFlag ){
839 fossil_print("Could not remove file: %s\n", zName+nRoot);
840 }
841 }
842 db_finalize(&q);
843 if( !dryRunFlag && !disableUndo ) undo_finish();
844
--- src/checkin.c
+++ src/checkin.c
@@ -833,11 +833,11 @@
833 }
834 if( dryRunFlag || file_delete(zName)==0 ){
835 if( verboseFlag || dryRunFlag ){
836 fossil_print("Removed unmanaged file: %s\n", zName+nRoot);
837 }
838 }else{
839 fossil_print("Could not remove file: %s\n", zName+nRoot);
840 }
841 }
842 db_finalize(&q);
843 if( !dryRunFlag && !disableUndo ) undo_finish();
844

Keyboard Shortcuts

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