Edgewall Software
Modify

Opened 10 years ago

Closed 8 years ago

#6016 closed defect (fixed)

trac-admin resync doesn't update revision message after editing a svn revision log

Reported by: anonymous Owned by: Christian Boos
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 (1)

post-revprop-change (1.8 KB ) - added by Christian Boos 9 years ago.
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.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by Christian Boos

Component: trac-adminversion control
Keywords: resync added
Milestone: 0.12
Owner: changed from Christopher Lenz to Christian Boos
Priority: highnormal
Severity: majorminor

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.

Changed 9 years ago by Christian Boos

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 8 years ago by Christian Boos

Milestone: 0.130.12

To be reworked on top of #7723.

comment:3 Changed 8 years ago by Christian Boos

Keywords: documentation added

#2482 closed as duplicate.

comment:4 Changed 8 years ago by Christian Boos

Status: newassigned

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 8 years ago by Christian Boos

Keywords: multirepos added

comment:6 Changed 8 years ago by Christian Boos

Milestone: 0.120.12-multirepos

comment:7 in reply to:  4 Changed 8 years ago by Remy Blank

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 8 years ago by Christian Boos

Resolution: fixed
Status: assignedclosed

Yes, and I'll start the 0.12/TracRepositoryAdmin page one of these days :-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.