Your Linux Data Center Experts

We have a big repository for all our documentation. Evelyn relies heavily on the timestamps of the files in her checked out copy. However, recently her checkout got munged and we had to check out a fresh copy. Sadly, this means that all the files older than when we did the checkout were dated at the checkout time. So, I wrote a script to fix it…

I call it “svnfixtime”, and it's available at ftp://ftp.tummy.com/pub/tummy/svnfixtime/. It uses the “svn info” command to pull the last changed time of the file in the SVN repository, and then it checks that against the version in the file-system. If they differ, it will do a “touch” to fix the time on the file.

And there was much rejoicing…

comments powered by Disqus

Join our other satisfied clients. Contact us today.