Tuesday 2009/06/23
10:29 AM

Categories: Flash/Actionscript, Tech, Technology's Betrayal, Web Dev

Changing Filename Case in SVN

This one has bugged me for a long time. During a project where things get passed from developer to developer or designer to designer things often get renamed to the same name, only with a different case. For example, myFlv_IN.flv becomes myFlv_in.flv. I used to think you had to move the files away, rename them, and then re-add them. Turns out if you simply include the full path to the repository it'll do the rename in place for you.

For example:

CODE:
  1. svn mv -m 'rename' http://my.repository.com/myFlv_IN.flv http://my.repository.com/myFlv_in.flv

More details can be found here, at the Subversion FAQ.


Responses


David Wicks

Wednesday 2009/06/24 1:41 PM

That’s definitely nicer. I actually started using git recently (having never properly learned how to use svn, in fairness), and the same can be done this way:

git mv /local/stuff_IN.flv /local/movies/stuff_in.flv

I really prefer using git for my personal projects. For team stuff, I’m still on company-standard svn.


Leave a Response