How can I add the version of a file to the file name with Tortoise-SVN?

Posted by Eric Belair on Programmers See other posts from Programmers or by Eric Belair
Published on 2012-09-25T14:51:01Z Indexed on 2012/09/25 15:49 UTC
Read the original article Hit count: 304

I would like to start giving unique names to "cache-able" files - i.e. *.css and *.js - in order to prevent caching, without requiring changes to the web-server settings (as is currently done in IIS).

For instance, let's I have a JavaScript file called global.js. Going forward I would like it to have the name global.123.js when revision 123 is checked in. This would also require the following:

  • The previous version of the file - perhaps it was global.115.js - is removed when the file is deployed.
  • All references to the file are updated with the new file name

How do I go about doing this? What concerns do I need to consider?

© Programmers or respective owner

Related posts about version-control

Related posts about svn