I have the following problem that other people must have encountered. I am working on a code base that runs on two different platforms. Most of the code is shared between the platforms, but some parts of the code are optimized for a particular platform. So, there may be a generic implementation of function foo()
in file foo.cpp
and an implementation optimized for platform A in file foo_A.cpp
.
Of course, what sometimes happens is that a developer modifies foo.cpp
and forgets to make a corresponding change to foo_A.cpp
to keep them in sync. This leads to very unpleasant bugs, that are hard to track down.
Finally, here's my question: is there any way to "entangle" two or more files in Subversion? Is it possible whenever one commits a change to foo.cpp
to have svn issue a warning, a reminder to update foo_A.cpp
?