Update/Merge a working copy from a transaction
Date: 2006-11-02 00:31:26 CET
I am trying to come up with an improved way of preventing our developers from checking stuff into trunk that doesn't even build. One of the things I am considering is to start off a full build in the pre-commit hook and fail the commit if that does not complete without errors. The problem is, that the script needs to create a working copy that contains the head of trunk plus whatever the user is trying to commit, i.e. the contents of the transaction. One thing I thought I could do, was to do a svnlook diff -t ... | svn patch, but unfortunately svn doesn't have a patch command (I think it should) and the standard patch programs of course don't really do an adequate job (no properties, only working copies of files changed, but nothing added/deleted etc).
Has anybody come accross a similiar problem and found a solution?
This is an archived mail posted to the Subversion Users mailing list.