Hi folks,
I need to prevent users adding and commiting files of a specific file type in our development structure, but allow Add and Commit if that file type is on an Acceptance branch.
For example:
All files with extension .foo can not be Added/Committed while their repository path contains the folder name /DEV/ , but can be added and committed if the path contains /ACC/ (files of type .foo can be added when on the ACCeptance branch but not on the DEVelopment branch).
Similarly, I want to restrict the addition of different file type (lets call it .abc) to the /DEV/ path only, and NOT allow commit of any changes after these files move over to /ACC/ using SVN. It would be useful to set the svn:needs-lock on these file types once they move over to the /ACC/ branch, but that may be another discussion.
Does anyone have experience or scripts they can share that can get me started on this part of my pre-commit script?
Cheers!
Tim
Last updated