Making files read-only
Hi
I am looking into how to make certain (binary or non-code) files read-only but still under version control. You can lock a file, but then the file can be edited, just not delivered. Is there a better mechanism to do this? Perhaps there is a way to make the file read-only in your sandbox.
thanks
anthony
I am looking into how to make certain (binary or non-code) files read-only but still under version control. You can lock a file, but then the file can be edited, just not delivered. Is there a better mechanism to do this? Perhaps there is a way to make the file read-only in your sandbox.
thanks
anthony
Accepted answer
I am not aware of any extensibility mechanism provided with the "load" operation that would allow you to do something like this, so you would probably have to run some kind of "make-read-only" script following the load operation. You would also then have to verify that having the file be read-only doesn't disrupt a subsequent "accept" operation that needs to update one of the read-only files.
2 other answers
This sounds that a pessimistic locking - which is not there - could help.
If so, look work item 71912, or this RFE on developerWorks and vote for that functionality
If so, look work item 71912, or this RFE on developerWorks and vote for that functionality