Edgewall Software

Ticket #950 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

no email notification on ticket change via SVN commit command "refs"

Reported by: hw@… Owned by: jonas
Priority: low Milestone: 0.9
Component: ticket system Version: 0.8
Severity: normal Keywords:
Cc: hw@…

Description

When you checkin a changeset and use the "refs #<ticket_nr>" command no notification is send. Normal ticket change like adding comment works well.

Attachments

track_post_commit_hook.diff (4.1 KB) - added by anonymous 4 years ago.
Diff of a working fix to the current trunk version
track_post_commit_hook.2.diff (4.1 KB) - added by sitharus@… 4 years ago.
A working diff from the current trunk.
trac-post-commit.patch (3.4 KB) - added by xris <xris*siliconmechanics*com> 3 years ago.
patch against current post-commit script, [1497]

Change History

Changed 4 years ago by cmlenz

What is the "SVN commit command 'refs'"?

$ svn refs --help
"refs": unknown command.

Changed 4 years ago by cmlenz

Oh, you're talking about the post-commit hook?

Changed 4 years ago by anonymous

yes exactly.

Changed 4 years ago by anonymous

  • version changed from devel to 0.8
  • milestone set to 0.9

We just checked, also closing via "post-commt hook" does not send a notification email.

Changed 4 years ago by mrowe

I believe the post-commit hook modifies the database directly. The module that provides the functionality needed should probably be refactored so that the post-commit hook can use it to make the changes.

Changed 4 years ago by mgood

#1508 has been marked as a duplicate of this ticket

Changed 4 years ago by xris

as I mentioned in #1508, the post-commit hook uses ticket.save_changes(). I don't mind helping to fix this, but need to know from the devs if it should be fixed in the hook (by adding a call to whatever method sends the emails) or in the trac code (by making save_changes() send the email).

Changed 4 years ago by mgood

  • status changed from new to closed
  • resolution set to fixed

This was actually fixed a while back with [1497], but just got overlooked in the list of fixed tickets. I've tested it out and it's working as expected.

Changed 4 years ago by mgood

  • status changed from closed to reopened
  • resolution fixed deleted

Oops, my mistake. This still doesn't work. I was testing stuff and got an email that I thought was from the commit closing the ticket, but it wasn't.

Changed 4 years ago by anonymous

Diff of a working fix to the current trunk version

Changed 4 years ago by sitharus@…

I've attached a patch which fixes the problem on my system.

Changed 4 years ago by sitharus@…

A working diff from the current trunk.

Changed 4 years ago by sitharus@…

Attached a working patch, the last one doubled up a command line option, early morning.

Changed 3 years ago by xris <xris*siliconmechanics*com>

patch against current post-commit script, [1497]

Changed 3 years ago by xris <xris*siliconmechanics*com>

tried the second diff that was posted, and it didn't apply cleanly to the current tree, so I took my current working ticket-emailer and added a few things:

* corrects the commented example to use -s instead of the incorrect -u for url * pulls trac.ini project url in if no url is passed in via -s * imho much simpler code, and in my case, it actually works.

Changed 3 years ago by anonymous

  • status changed from reopened to closed
  • resolution set to fixed

Applied to trunk, thanks!

Changed 3 years ago by jonas

oops, forgot to login.

Add/Change #950 (no email notification on ticket change via SVN commit command "refs")

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.