Re: Post-commit hook tutorials?
Thanks for the response! I'll feast on what you have given me for a while and see how far it takes me. As it happens, the SVN server (linux) and the destination server (Windows) are not the same server so I'll have to figure something out there. But this is great help already, so thanks!
From: John Peacock [mailto:john.peacock_at_havurah-software.org]
To: Robert Denton [mailto:robert_at_headsprout.com]
Sent: Thu, 28 Feb 2008 17:38:47 -0800
Subject: Re: Post-commit hook tutorials?
Robert Denton wrote:
> If any file is committed in a specific SVN directory, copy that file to
> a windows file server via UNC (or any other means). Any suggestions
> would be great. Thanks!
Here's the short answer - Don't write your own hooks (see below)!
Here's the explanation why:
Here's how to use someone else's hard work, so you have more time to play
[insert your favorite time waster here]:
Install SVN::Notify::Mirror and SVN::Notify::Config. Write a post-commit
file like this:
and you are done (if the repository is local to the destination that is). If
your Subversion server is Windows (my condolences), you are going to have to
write a CMD file wrapper.
You won't be able to use UNC paths from a service account on Windows (because
those are specifically limited to local machine access only). You could use
SVN::Notify::Mirror::SSH (if you can install SSH on the remote server) which I
have done quite successfully at my previous job. Or you can prod me a little
and I'll write an FTP subclass... ;-)
Received on 2008-02-29 19:25:11 CET
This is an archived mail posted to the Subversion Users