Ben,
I have started looking into implementing some type of versioning routine into my IMatch database although work has prevented me from getting to it yet.
I have been following the forums a bit and from an observer standpoint, I like the features of your script the most, and will probably start with yours when I get to that point.
There are a few items though I wonder or would be interested in seeing, although I haven't had a chance to think about how to implement it (it may be too complicated)...
Foremost, I want to be able to look at a version file rather than a master file when I am browsing the database. My workflow is that when I make a version, the first version is usually just a color correction of the master file (with all other changes resulting in additional version files). I'd like to make it so that file is what I see in the regular database (i.e. fully categories) and have the master file (when a version exists) not be fully categorized. Often times when I am looking to use a file for printing or a slideshow, it's the altered file that appeals to me. I like knowing there is an original there, but if the version is available from the start I wouldn't need the original as often. With the original available, I'd always need to look for the version(s). In my workflow this could save a bit of time.
I am not sure this could be done easily as I am not very good with scripting and am still learning it. I might try to somehow implement it by wroking with a naming convention rather than on date and time alone. What I like is the colorization routine you have and only using one file in the main part of the database with the colors.
In my head, I can foresee doing even more with your versioning concept as there are times when I create panoramas or other derived formats that would be nice to utilize a similar format to hide the original pieces, and probably use a different coloring process as well...
Well, I can keep dreaming. Regardless, I will try to utilize your script as it is and perhaps my needs or requirements will change.
Keep up the good work.
Erik