I need the clearcase's hijack functionality in svn. I need this to change ONLY LOCALY some configuration files. How to do this preventing the commit from all users? Thanks
Asked
Active
Viewed 144 times
0
-
1Possibly duplicate: http://stackoverflow.com/questions/951032/svn-ignore-without-deleting-files – Adrian Shum Jan 14 '13 at 08:35
-
Possible duplicate of [ClearCase hijack functionality in subversion](https://stackoverflow.com/questions/3129637/clearcase-hijack-functionality-in-subversion) – ldav1s Jul 19 '18 at 17:51
2 Answers
0
A simple workaround is to use symbolic links. The link, especially the pointer to the local file is preserved, but not the content of the file. So the file content may differ on each local installation.
If needed you can combine this approach with a script installing some default files to the link destination to reflect the local differences of your environment.

H.-Dirk Schmitt
- 1,159
- 8
- 14
0
If you have administrator privileges, you can define a new property, say site:nocommit
. When set, you can have your pre-commit hook reject this file.
Personally, I think this is much better than "silent" solutions suggested by others.

Lindydancer
- 25,428
- 4
- 49
- 68
-
It can be a nuisance for everyone to have to remember to not commit the config files. I would rename the config file in version control to something like foo.config.default and have everyone use a local copy (non version controlled and svn:ignored) for the true foo.config – vinnyjames Jan 14 '13 at 19:44