[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Update/Merge a working copy from a transaction

From: <SebastianUnger_at_eaton.com>
Date: 2006-11-02 00:31:26 CET

Hi,

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?

Sebastian Unger
Software Designer
-----------------------------------------------------------------------------
Powerware, 39 Princess St, PO Box 11-188
Christchurch 8030, New Zealand
Phone: (+64) 3 343-3314, Fax: (+64) 3 343-5100
E-mail: SebastianUnger@eaton.com
Website: www.powerware.com
Received on Thu Nov 2 00:32:08 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.