Ticket #6016 (closed defect: fixed)
Opened 4 years ago
Last modified 2 years ago
trac-admin resync doesn't update revision message after editing a svn revision log
| Reported by: | anonymous | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.12-multirepos |
| Component: | version control | Version: | 0.10.4 |
| Severity: | minor | Keywords: | resync documentation multirepos |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
After a change on a revision log message using svn propedit or svn propset, trac-admin resync doesn't update the revision log message in trac database, even although it retourns a 'resynced <rev number>' message. Actually, it doesn't even do any access to revision table on trac database. Tested with both interactive and not interactive modes, using resync and resync <rev number> with Trac 0.10.4 and PostgreSQL 8.1.9
Attachments
Change History
comment:1 Changed 4 years ago by cboos
- Component changed from trac-admin to version control
- Keywords resync added
- Milestone set to 0.12
- Owner changed from cmlenz to cboos
- Priority changed from high to normal
- Severity changed from major to minor
Changed 4 years ago by cboos
- Attachment post-revprop-change added
Example post-revprop-change hook that allows for editing the message and the author and syncs the change back in trac. Should work with any Trac versions > 0.10.4.
comment:2 Changed 3 years ago by cboos
- Milestone changed from 0.13 to 0.12
To be reworked on top of #7723.
comment:4 follow-up: ↓ 7 Changed 3 years ago by cboos
- Status changed from new to assigned
The new trac-svn-hook script in MultiRepos (to be called from the $REPOS/hooks/post-revprop-change script) handles this adequately.
comment:5 Changed 3 years ago by cboos
- Keywords multirepos added
comment:6 Changed 2 years ago by cboos
- Milestone changed from 0.12 to 0.12-multirepos
comment:7 in reply to: ↑ 4 Changed 2 years ago by rblank
Replying to cboos:
The new trac-svn-hook script in MultiRepos (to be called from the $REPOS/hooks/post-revprop-change script) handles this adequately.
I'm going through the remaining multirepos tickets. Can this be closed, then?
comment:8 Changed 2 years ago by cboos
- Resolution set to fixed
- Status changed from assigned to closed
Yes, and I'll start the 0.12/TracRepositoryAdmin page one of these days :-)



Sorry for the late answer.
trac-admin <env> resync <revnum> definitely works with 0.11dev. I pretty sure it should work the same in 0.10.4.
This is most probably a misconfiguration of your post-revprop-change hook.
I realize that there's no example in the contrib folder, so I'll attach mine here. Hopefully from that you can figure out what went wrong in your case.
I'll probably add that to the contrib (or svn-contrib) folder for 0.12.