Modify

Opened 2 years ago

Closed 2 years ago

#10509 closed enhancement (fixed)

Sync repository revision after edit in post-commit hook

Reported by: rjollos Owned by: rjollos
Priority: normal Component: TracHacks
Severity: normal Keywords:
Cc: otaku42, hasienda, 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 2 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.