We'd like to prevent changes to SQL migration scripts that are in source control and have already been applied. Is there a way to mark files (specifically, SQL migration scripts) as read-only and persist this in source control?
We could resort to pre-commit hooks in our central repository, but this would require users to perform some advanced mercurial operations to undo their local commits.
Failing that, any other suggestions? Thank you.