A typical way to handle such situations is to:
- Make a copy of the file with a name indicating that it is a template
- Pin template to your repository
- Ignore source file
This way you will have a new copy, and during deployment you can copy the file from the template to the real file.
Thus, you do not risk making bad changes to this file and, at least for another version control system, you do not risk someone checking the file and forgetting the lock.
There is no way in Subversion to indicate that the file is only-commit-first-time, but when you added it to your repository, you told Subversion to track changes in that file. If you don’t make sure manually (or write a tool or change your tools) to never make changes to this file, Subversion will not help you.
Lasse Vågsæther Karlsen
source share