Contact

admin

About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon

Tags

Open Source Projects

Archives

Blogs of friends

Now playing [?]

Error retrieving information from external service.
Audioscrobbler/Last.fm

ClustrMap

Comparing and Synchronizing Subversion Folders With Total Commander

Posted in Tools and Software at Monday, March 12, 2007 1:58 AM W. Europe Standard Time

My Swiss Army knife for file operations is Windows Explorer. No, just kidding. In fact, I don't see a point in using Windows Explorer at all. It always feels like an insurmountable hassle to get this tool doing what I want quickly. (Yes, I know about Ctrl+A, Ctrl+C, Ctrl+V and their siblings.)

Anyway, I didn't want to bash Microsoft's premier file manager, instead I wanted to share a little goodie for Total Commander, a tool that deserves to be called Swiss Army knife. Total Commander is my tool of choice when it comes to doing anything with files. It's runs virtually all the time I'm in front of the computer. There's also a version for your USB stick and one for Windows Mobile and craploads of plugins to try out.

Total Commander comes with a powerful synchronization tool that allows you to compare and synchronize two directories. Because Total Commander handles zip files transparently, it allows to synchronize between a zip and a directory or between two zip files. Comparison features I've almost always enabled are the "Subdirs", "By content" and "Ignore date" checkboxes. This allows me to quickly see any differences between folders.

Synchronize Directories

If a folder contains .svn or _svn subfolders to accommodate Subversion's internal bookkeeping files, Total Commander will also compare these files. Of course this is pretty useless since these files will most likely not hold information you're interested in. The Synchronize Directories dialog provides a filter text box at the top that allows you to define a pattern for files to include and ignore in the search. The syntax is simple but the tiny input field doesn't assist you defining a filter, at least it remembers the last filters used.

Here's a filter definition leaving out all files related to Subversion, it came in handy a couple of times for me.

*.*|*.svn-base all-wcprops entries format dir-prop-base

Now Playing [?]: MetricLive it out – Monster hospital

Thursday, July 26, 2007 2:48:04 PM (W. Europe Daylight Time, UTC+02:00)
This can be done even simpler with the filter:

*.* | *.svn\

which just ignores the content of all *.svn subdirectories :-) This also works fine in the search Dialog (Alt+F7), because usually you will find the supposed file and the same same in the corresponding .svn subdir.
Marco
Thursday, July 26, 2007 2:54:42 PM (W. Europe Daylight Time, UTC+02:00)
Thanks, Marco!
Friday, September 07, 2007 7:56:57 PM (W. Europe Daylight Time, UTC+02:00)
In Total commander 7.0 you can set filters so it will never show ".svn" folder
Josip
Friday, September 07, 2007 9:17:14 PM (W. Europe Daylight Time, UTC+02:00)
Thanks for the hint, Josip! I wasn't aware of this option. (It can be found under Configuration, Options, Operation, Ignore List)
Tuesday, September 09, 2008 4:13:21 PM (W. Europe Daylight Time, UTC+02:00)
Configuration / Options / Ignore list
Tuesday, October 28, 2008 10:19:34 AM (W. Europe Standard Time, UTC+01:00)
I have created of post that explain how to set up the ignore list and how to create a button to quickly turn off the filtering feature.

SVN or CVS with Total Commander - Ignore List feature

A big thank you for the regEx and the Ignore List idea.
Tuesday, July 20, 2010 11:42:53 AM (W. Europe Daylight Time, UTC+02:00)
But who still using Windows ?
Tuesday, July 20, 2010 12:03:38 PM (W. Europe Daylight Time, UTC+02:00)
Mic, I do.
All comments require the approval of the site owner before being displayed.
(will show your gravatar icon)
 
[Captcha]Enter the code shown (prevents robots):

Live Comment Preview