Fossil

Check-in [6c2a2087]
Login

Check-in [6c2a2087]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Always print a warning if "fossil clean" is unable to remove a file, even if the --verbose option is omitted.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | clean-cmd-cleanup
Files: files | file ages | folders
SHA1: 6c2a2087d2c4ad9fdfa69a23badd04d4cab5f371
User & Date: drh 2015-11-03 01:20:38
Context
2015-11-03
13:49
Updates to the "fossil clean" command: Added the -i/--prompt option. Always report if unable to delete a file. Fixed memory leaks and over-length source code lines. ... (check-in: c985d905 user: drh tags: trunk)
01:20
Always print a warning if "fossil clean" is unable to remove a file, even if the --verbose option is omitted. ... (Closed-Leaf check-in: 6c2a2087 user: drh tags: clean-cmd-cleanup)
01:07
Add the -i or --prompt option to the "fossil clean" command. ... (check-in: 1c9da04a user: drh tags: clean-cmd-cleanup)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/checkin.c.
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
          }
        }
      }
      if( dryRunFlag || file_delete(zName)==0 ){
        if( verboseFlag || dryRunFlag ){
          fossil_print("Removed unmanaged file: %s\n", zName+nRoot);
        }
      }else if( verboseFlag ){
        fossil_print("Could not remove file: %s\n", zName+nRoot);
      }
    }
    db_finalize(&q);
    if( !dryRunFlag && !disableUndo ) undo_finish();
  }
  if( emptyDirsFlag ){







|







831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
          }
        }
      }
      if( dryRunFlag || file_delete(zName)==0 ){
        if( verboseFlag || dryRunFlag ){
          fossil_print("Removed unmanaged file: %s\n", zName+nRoot);
        }
      }else{
        fossil_print("Could not remove file: %s\n", zName+nRoot);
      }
    }
    db_finalize(&q);
    if( !dryRunFlag && !disableUndo ) undo_finish();
  }
  if( emptyDirsFlag ){