Modify

Opened 12 years ago

Closed 12 years ago

#10509 closed enhancement (fixed)

Sync repository revision after edit in post-commit hook

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: TracHacks
Severity: normal Keywords:
Cc: Michael Renzmann, Steffen Hoffmann, osimons Trac Release: 0.10

Description

Currently only the trac-hacks repository administrators can edit log messages, but this should still result in syncing of the Trac repository revision.

Attachments (0)

Change History (1)

comment:1 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

Here is the content of the post-revprop-change hook:

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
TRAC_ADMIN="/srv/trac-hacks.org/pve/bin/trac-admin"
TRAC_ENV="/srv/trac-hacks.org/trac"

$TRAC_ADMIN $TRAC_ENV resync "$REV" >> $TRAC_ENV/log/trac-hacks-post-commit.log 2>&1

Entries such as the following are now found in the log:

12225 resynced.
12223 resynced.

Please let me know if you have any suggestions for improvement.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.