Discussions  >  CollabNet Subversion Admins  >  Re: Create or modify hook script to send generic message ?

Back to topic list

Re: Create or modify hook script to send generic message ?

Author cmpilato (OCN Member)
Full name C. Michael Pilato
Date 2012-03-22 09:05:24 PDT
Message On 03/22/2012 11:26 AM, Phil Pinkerton wrote:
> Not real confident about the redirect.

Not confident that it will work? Or not confident that you can actually put
one into place? Your post-commit hook is a good idea, but I suspect your
users would be rather happy if you put the redirect into place and their
working copies all got automagically relocated the next time they ran 'svn
update'.

> However I alomst have the post-commit hook working. Just need to figure
> out why a command works on the command line but not from the hook script.
> It is the $NEW variable that works on the command line but gives the wrong
> output when ran from the hook script:

post-commit (and other hooks) aren't provided repository URLs -- only
repository *paths* on the server. You'll need to hard-code the base portion
of the URL into your hook script logic.

--
C. Michael Pilato <XXXX@XXXX>
CollabNet <> www.collab.net <> Distributed Development On Demand
Attachments

« Previous message in topic | 5 of 8 | Next message in topic »

Messages

Show all messages in topic

Create or modify hook script to send generic message ? pcpinkerton (OCN Member) Phil Pinkerton 2012-03-21 04:05:43 PDT
     RE: Create or modify hook script to send generic message ? markphip (OCN Member) Mark Phippard 2012-03-21 04:41:12 PDT
     Re: Create or modify hook script to send generic message ? cmpilato (OCN Member) C. Michael Pilato 2012-03-21 09:16:16 PDT
         RE: Re: Create or modify hook script to send generic message ? phil_pinkerton (OCN Member) Phil Pinkerton 2012-03-22 08:26:42 PDT
             Re: Create or modify hook script to send generic message ? cmpilato (OCN Member) C. Michael Pilato 2012-03-22 09:05:24 PDT
                 RE: Re: Create or modify hook script to send generic message ? phil_pinkerton (OCN Member) Phil Pinkerton 2012-03-22 11:00:46 PDT
                     Re: Create or modify hook script to send generic message ? cmpilato (OCN Member) C. Michael Pilato 2012-03-22 11:20:18 PDT
                         RE: Re: Create or modify hook script to send generic message ? phil_pinkerton (OCN Member) Phil Pinkerton 2012-03-22 13:25:01 PDT
Messages per page: