What\'s the best method to notify other developers when a change committed into revision control requires some specific additional action by the developer getting the update
There should rarely be changes necessary that are outside of revision control. For the rare cases where they are, use the regular communication channel the developers have (like mailing list or IRC channel or something similar). Every multi-developer project needs such thing anyway.
Just an idea, but you could have trigger based on a pattern in the commit message to send a mail with the commit comment to developers
doable with hooks
With git, what you could do (even if it isn't really there for that scenario) is to use a filter driver, provided your commit includes changes for a file with a recognizable content (the filter doesn't have a name or path of the file).
A filter driver is:
.gitattributes
files (meaning, contrary to hooks or triggers, you can easily distribute it)Again, the point is to not use hooks (which you can't easily replicated amongst repos), and use a mechanism which can be versioned and cloned around.
For files where each developer needs to make local changes (like database connection strings, etc.) I like to keep a template as a tracked file, something like localconfig.template
. In your build/launch scripts you could have logic like this:
if not exists localconfig then
copy localconfig.template to localconfig
else
if localconfig.template is newer than localconfig
print a big ugly warning about maybe needing to update
Personnally, I use 2 methods :
update
script that is used to manage the update of all the parts of my project (different directories, different repositories, different version control...), in this script I put every operation needed to maintain a correct repository (I use it for svn and git repositories).