Brett | 8 May 22:09

[Trac] SVN Post Commit Email on Windows SBS with tracd


I have looked through several of the SVN Post Commit related threads
on the group site here and still have a few questions about setting up
Trac to send a post-commit email (including changset number, who made
the change, a list of modified files, and the log entry contents) out
to a group of individuals upon changeset committal.

I am running trac 0.10.4, standalone tracd, on a Windows SBS system.

1) Several of the posts make reference to a file "trac-post-commit-
hook.py". I do not have that file on my system.  Should I?  And if
not, where do I obtain a copy?

2) It seems that setting up the post-commit system is a bit tricky on
Windows.  Is anyone aware of a complete tutorial on how to set up the
post-commit on a Windows box?

I would prefer to not use Perl, since I do not have it installed on
the server.  I can install it, but since its not installed already,
I'd prefer to keep things simpler if at all possible.

Thanks in advance for your help!

Brett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users@...
To unsubscribe from this group, send email to trac-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---
(Continue reading)

Emmanuel Blot | 8 May 22:43

[Trac] Re: SVN Post Commit Email on Windows SBS with tracd


> I have looked through several of the SVN Post Commit related threads
> on the group site here and still have a few questions about setting up
> Trac to send a post-commit email

> 1) Several of the posts make reference to a file "trac-post-commit-
> hook.py". I do not have that file on my system.  Should I?  And if
> not, where do I obtain a copy?

I'm surprised you never found a reference to the '/contrib' directory
(see Trac source code). An exemple of such as script is available
there
  http://trac.edgewall.org/browser/trunk/contrib
or a more specialized one:
  http://trac-hacks.org/browser/revtreeplugin/0.11/hooks

> 2) It seems that setting up the post-commit system is a bit tricky on
> Windows.  Is anyone aware of a complete tutorial on how to set up the
> post-commit on a Windows box?

See the latest URL: there are some wrapper scripts for Unix shell and
batch files. You'll obviously need to tweak the paths they use, but
that's a pretty
straightforward operation.

> I would prefer to not use Perl, since I do not have it installed on
> the server.  I can install it, but since its not installed already,
> I'd prefer to keep things simpler if at all possible.

Both those scripts are written in Python - as it's far more easier to
(Continue reading)

Brett | 9 May 21:19

[Trac] Re: SVN Post Commit Email on Windows SBS with tracd


Manu--

Thank you for yuor help!  I am not much of a Python programmer ... do
you know of any resource I can use to have a post-commit hook to
merely send a notification email out to a group of people with the
changeset number, who committed the changeset, a list of the files
changed, and the contents of the log entry?

I really don't need the features to close tickets and add changeset
logs to tickets at this current point in time.

Of course, if this is independent of Trac (which I get the sense it
might be) ... please let me know and I will look elsewhere.

Thanks again for your help!

Brett

On May 8, 4:43 pm, "Emmanuel Blot" <manu.b...@...> wrote:
> > I have looked through several of the SVN Post Commit related threads
> > on the group site here and still have a few questions about setting up
> > Trac to send a post-commit email
> > 1) Several of the posts make reference to a file "trac-post-commit-
> > hook.py". I do not have that file on my system.  Should I?  And if
> > not, where do I obtain a copy?
>
> I'm surprised you never found a reference to the '/contrib' directory
> (see Trac source code). An exemple of such as script is available
> there
(Continue reading)

yoheeb | 9 May 21:45

[Trac] Re: SVN Post Commit Email on Windows SBS with tracd


On May 9, 2:19 pm, Brett <wbrander...@...> wrote:
> Manu--
>
> Thank you for yuor help!  I am not much of a Python programmer ... do
> you know of any resource I can use to have a post-commit hook to
> merely send a notification email out to a group of people with the
> changeset number, who committed the changeset, a list of the files
> changed, and the contents of the log entry?
>
> I really don't need the features to close tickets and add changeset
> logs to tickets at this current point in time.
>
> Of course, if this is independent of Trac (which I get the sense it
> might be) ... please let me know and I will look elsewhere.
>
> Thanks again for your help!
>
> Brett
>
<snip>

I think you have 2 avenues here.  You can do it purely as a subversion
post-commit-hook (helps if you have a pre-commit-hook to enforce all
the things you are asking for), or  you can have a subversion post-
commit-hook, which calls a trac-post-commit-hook, which updates the
tickets, and configure trac to notify people of changes to the
ticket.  (possibly customizing this to include the information if they
don't want to navigate to the web page to READ it (say, one of the
recipients is another script :D)
(Continue reading)

Brett | 9 May 22:39

[Trac] Re: SVN Post Commit Email on Windows SBS with tracd


I downloaded svn-notify (readily available on the net for *nix or
windows) a little while ago and am trying to configure it now.  It
comes with basic pre- and post-commit hooks which I am now customizing
to fit my needs, and looks like it will provide all of the
functionality I am requiring as of now.  I may go with more Trac
integration at a later date, but for now all I desire is the email
notification.

Brett

On May 9, 3:45 pm, yoh...@... wrote:
> On May 9, 2:19 pm, Brett <wbrander...@...> wrote:
>
> > Manu--
>
> > Thank you for yuor help!  I am not much of a Python programmer ... do
> > you know of any resource I can use to have a post-commit hook to
> > merely send a notification email out to a group of people with the
> > changeset number, who committed the changeset, a list of the files
> > changed, and the contents of the log entry?
>
> > I really don't need the features to close tickets and add changeset
> > logs to tickets at this current point in time.
>
> > Of course, if this is independent of Trac (which I get the sense it
> > might be) ... please let me know and I will look elsewhere.
>
> > Thanks again for your help!
>
(Continue reading)


Gmane