svnsvn-hookssvn-mergesvn-propsetsvn-config

SVN Add file every commit or merge, even if not changed


Can I force SVN to commit/merge a specific file every time even if the file doesn't change?

I know you can ignore a file but what about something like 'Always Commit' option?

I'm using the revision number SVN Tags $Revision$ in one file, I parse the file and use that revision number as a variable as I wanted to eliminate doing this manually before a merge. I wanted just to have the Revision number update as it does what it is committed. Only problem is I still need to manually do this and I would like to automate this, thoughts?


Solution

  • You shouldn't use the file from a file, cause SVN only updates this revision if the file has really been changed. The best thing is to use svnversion on command line to get the information you need. Furthermore eliminating it before the merge is not needed, cause SVN will handle that for you...cause the expansion of the Keyword into the revision number is done by the SVN client which means in other words the file is stored in the repository with not expanded keywords. I don't know in which programming language you are working but usually this should be done by a build system.