SVN® Cleaner
This tool adds three options to the Windows Explorer Context Menu:
- Remove All .svn
- Remove All But Root .svn
- Remove Local Repo Files
Examples of Each
The Following Directory structure will be used in all examples below. Strike out lines represents deleted directories and/or files.
- SVN Cleaner (dir)
- .svn (dir)
- obj (dir not in repos)
- Debug (dir with files)
- Release (dir with files)
- Properties (dir)
- .svn (dir)
- AssemblyInfo.cs (file) (I have no idea what that question mark is there)
- Settings.Designer.cs (file)
- Settings (file)
- Program.cs (file)
- SVNCleaner (file)
- license.txt (file not in repos)
Remove All .svn
This menu option recursively removes all *.svn directories from the selected directory.
For Example:
- SVN Cleaner (dir)
- .svn (dir)
- obj (dir not in repos)
- Debug (dir with files)
- Release (dir with files)
- Properties (dir)
- .svn (dir)
- AssemblyInfo.cs (file)
- Settings.Designer.cs (file)
- Settings (file)
- Program.cs (file)
- SVNCleaner (file)
- license.txt (file not in repos)
Remove All But Root .svn
This menu option recursively removes all *.svn directories and files from the selected directory except the Root directory.
For Example:
- SVN Cleaner (dir)
- .svn (dir)
- obj (dir not in repos)
- Debug (dir with files)
- Release (dir with files)
- Properties (dir)
- .svn (dir)
- AssemblyInfo.cs (file)
- Settings.Designer.cs (file)
- Settings (file)
- Program.cs (file)
- SVNCleaner (file)
- license.txt (file not in repos)
Remove Local Repo Files
This menu option recursively removes all local files that also exist in the repos. This is regardless of whether the local files have been edited (red exclamation mark) or match (green check mark) the repository files. This however WILL NOT delete directories of any kind.
For Example:
- SVN Cleaner (dir)
- .svn (dir)
- obj (dir not in repos)
- Debug (dir with files)
- Release (dir with files)
- Properties (dir)
- .svn (dir)
- AssemblyInfo.cs (file)
- Settings.Designer.cs (file)
- Settings (file)
- Program.cs (file)
- SVNCleaner (file)
- license.txt (file not in repos)
Requirements
- Microsoft Windows (XP or Vista, and heck probably Windows 7)
- .NET 2.0 Framework
For More Information About the Project
Future Plans
I eventually want to release future implementations of the program for use in Linux and Mac. Actually removing the files in Linux is much more simple (one liner in the shell, no .NET), but what I want to do is actually make installers for various file managers and types of Linux. Some managers might not allow you to add a menu item to the context menu, however some instead have a File Menu item for custom user scripts. So my plans are to conquer the major popular File manager (in Gnome and KDE), and then work to the less common ones (XFCE, Flux, pcman, thunar, etc...). Mac OSX, could be a little more difficult to work with (because I don't have one), but I'll jump that hurdle when I get to it.
Releases
1.1.0
- Added two new menu options, Remove All But Root .svn and Remove Local Repo Files
- Fixed the error logging, to actually work and be located in the Program Files/SVN Cleaner directory
1.0.1
- When the program is executed, it no longer flashes a black console screen. Just a minor visual improvement.