Edgewall Software
Modify

Opened 20 years ago

Last modified 10 years ago

#731 new enhancement

Allow Trac to send commit information email when the " sync "with the repository

Reported by: utopiste Owned by:
Priority: normal Milestone: unscheduled
Component: notification Version: 0.12-stable
Severity: normal Keywords: notification email
Cc: techtonik@…, Thijs Triemstra Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Lot of people send diff by email (or create a commit mailing list) for per review.

Currently trac have a excellent diff display, html generator, a good notify class and a sync command to trac-admin.

With all that it's easy to add a option for sending commit information by email (with some IniFile option)

the only thing add will be a trac-admin … sync in the post-commit hook

Attachments (0)

Change History (16)

comment:1 by walterjwhite@…, 20 years ago

Component: generalbrowser
Milestone: 1.00.7.1

Hi,

I had an idea (not sure if it got implemented) about repository access across the web. The server that I have setup has the working copies on the server itself. This is so the webpages can be rolled back to a different version. For people that do not have shell access to the server, they cannot update/commit changes from this working space to the repository and vice versa. Right now, they have a local working space which resides on their machine. The problem lies in that they cannot version their webpages efficiently. The process right now is commit changes to the server, then upload the files to the server which requires a subversion client to be installed. By adding working space functionsin trac, the user can work on the files more directly and quickly (no software needs to be installed), only a commit is required to version the files, and rolling back to prior versions also removes additional complexity. I think that idea is good too as there are teams that work individually some times and that would also help to increase their efficiency.

Walter

comment:2 by Christopher Lenz, 20 years ago

Milestone: 0.7.1

comment:3 by Mark Rowe, 20 years ago

I think that generating commit emails is a little outside of Trac's scope. Subversion provides several post-commit scripts that have this functionality so I'm unsure as to why it belongs in Trac?

comment:4 by Christian Boos, 19 years ago

Component: browserchangeset view
Keywords: notification email added
Owner: changed from Jonas Borgström to Christian Boos

This could be considered as part of a more generic notification infrastructure (notify on Web page changes, new changesets, etc.)

comment:5 by Matthew Good, 18 years ago

Milestone: 0.11
Owner: changed from Christian Boos to Matthew Good

We can add another "listener" interface for changesets that will be called when and new changeset is found. The automated closing of tickets done by the current "contrib" post-commit hook could also be handled by this interface.

in reply to:  5 comment:6 by Christian Boos, 18 years ago

Replying to mgood:

We can add another "listener" interface for changesets that will be called when and new changeset is found.

Well, I have nothing against, but I just wanted to point out that in the longer run, I prefer that we adopt a more "generic" IResourceChanged interface (with (type,id) info + generic authorship info).

The automated closing of tickets done by the current "contrib" post-commit hook could also be handled by this interface.

… and therefore get rid of all those encoding issues we're seeing with the hook. Good idea!

comment:7 by Christian Boos, 18 years ago

Component: changeset viewnotification
Milestone: 0.110.12
Priority: lownormal

comment:8 by anatoly techtonik <techtonik@…>, 15 years ago

I wonder if there any Trac hacks for this?

comment:9 by Remy Blank, 15 years ago

I don't know about plugins, but the multirepos branch has the IRepositoryChangeListener interface mentioned in comment:5, so this can now relatively easily be done in a plugin.

comment:10 by anatoly techtonik <techtonik@…>, 15 years ago

Cc: techtonik@… added

With that IRepositoryChangeListener if I need to resync revisions from scratch - will I receive tons of emails about them?

in reply to:  10 comment:11 by Remy Blank, 15 years ago

Replying to anatoly techtonik <techtonik@…>:

With that IRepositoryChangeListener if I need to resync revisions from scratch - will I receive tons of emails about them?

No, the events are not triggered by a resync, but by explicit trac-admin $ENV changeset added and trac-admin $ENV changeset modified commands that must be called from e.g. SVN hooks.

comment:12 by Remy Blank, 14 years ago

Milestone: next-major-0.1Xunscheduled

Bordering on "wontfix" (or rather "shouldbedoneinaplugin") now that IRepositoryChangeListener is available.

comment:13 by Thijs Triemstra <lists@…>, 14 years ago

Cc: lists@… added

comment:14 by Thijs Triemstra, 14 years ago

Cc: Thijs Triemstra added; lists@… removed

comment:15 by Joongi Kim <me@…>, 14 years ago

Version: 0.7.10.12-stable

As a multiple-repository user, I would like to integrate all notifications into the single Trac, rather than adding post-commit hooks for each repository, particularly when I have to manage heterogeneous types of repositories which have different methods for configuration of hooks.

We could implement this as a plugin, but I think we need one more consideration —- the notification of ticket comments by CommitTicketUpdater and the changeset listener should NOT be duplicated. So we might have to modify the official CommitTicketUpdater plugin.

Currently I'm getting notification emails like:

#XX: blah blah
----------------------------+--------------------
 Reporter:  joongi         |      Owner:  joongi
     Type:  enhancement    |     Status:  new
 Priority:  trivial        |  Milestone:
 Component:  Documentation  |    Version:
Resolution:                 |   Keywords:
----------------------------+--------------------

Comment (by joongi):

 In [XXX]:
 {{{
 #!CommitTicketReference repository="YYY" revision="XXX"
 refs #XX: blah blah
 }}}

I want to see actual diffs for the revision.

comment:16 by Ryan J Ollos, 10 years ago

Owner: Matthew Good removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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