The reason someone wants to commit an immutable file is because of a misunderstanding of how to revert to a previous version of the file.
For example, you can go back to index.html in revision 680 by simply updating it to a version in the past, for example. 650 :
svn update index.html -r 650
but this does not solve the problem because:
svn status -u index.html
* 650 index.html
Status against revision: 680
svn clearly says that index.html is being modified remotely, and you cannot commit it, i.e. he "thinks" that index.html is outdated and needs to be updated to a new version. So, the next svn update will bring index.html to version 680 .
To really restore the file, you must combine it in the reverse order:
svn merge -r 680:650 index.html
and then commit it svn ci -m "Reverted to r650" index.html
Serg Dec 02 '10 at 12:03 2010-12-02 12:03
source share