Edgewall Software
Modify

Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#950 closed defect (fixed)

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

Reported by: hw@… Owned by: Jonas Borgström
Priority: low Milestone: 0.9
Component: ticket system Version: 0.8
Severity: normal Keywords:
Cc: hw@… Branch:
Release Notes:
API Changes:
Internal Changes:

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 (3)

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

Download all attachments as: .zip

Change History (17)

comment:1 by Christopher Lenz, 20 years ago

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

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

comment:2 by Christopher Lenz, 20 years ago

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

comment:3 by anonymous, 20 years ago

yes exactly.

comment:4 by anonymous, 20 years ago

Milestone: 0.9
Version: devel0.8

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

comment:5 by Mark Rowe, 20 years ago

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.

comment:6 by Matthew Good, 20 years ago

#1508 has been marked as a duplicate of this ticket

comment:7 by xris, 20 years ago

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).

comment:8 by Matthew Good, 20 years ago

Resolution: fixed
Status: newclosed

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.

comment:9 by Matthew Good, 20 years ago

Resolution: fixed
Status: closedreopened

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.

by anonymous, 20 years ago

Attachment: track_post_commit_hook.diff added

Diff of a working fix to the current trunk version

comment:10 by sitharus@…, 20 years ago

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

by sitharus@…, 20 years ago

A working diff from the current trunk.

comment:11 by sitharus@…, 20 years ago

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

by xris <xris*siliconmechanics*com>, 19 years ago

Attachment: trac-post-commit.patch added

patch against current post-commit script, [1497]

comment:12 by xris <xris*siliconmechanics*com>, 19 years ago

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.

comment:13 by anonymous, 19 years ago

Resolution: fixed
Status: reopenedclosed

Applied to trunk, thanks!

comment:14 by Jonas Borgström, 19 years ago

oops, forgot to login.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.