Thursday, April 28, 2011

Svn Post Commit Hook to copy committed files to a working copy for another repository?

The aim is to maintain 2 separate repositories that are not strictly mirrored. Both repositories are be subject to update by different developers so svnsynch is out of the question.

Hooking the script might not be the right solution either as I would much prefer to run the script at will rather than with every commit. Perhaps a script to compare timestamps and copy the youngest? Please dont recommend that we change to git.

From stackoverflow
  • I'm linking to a hook script I use to check out a part of a repository every time it's committed to. You could probably modify it to suit your needs; I imagine you'd want to change the svn checkout to svn export.

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.