Edgewall Software
Modify

Opened 17 years ago

Closed 15 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: Branch:
Release Notes:
API Changes:
Internal 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 17 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 by Christian Boos, 17 years ago

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.

by Christian Boos, 17 years ago

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

Milestone: 0.130.12

To be reworked on top of #7723.

comment:3 by Christian Boos, 16 years ago

Keywords: documentation added

#2482 closed as duplicate.

comment:4 by Christian Boos, 16 years ago

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

Keywords: multirepos added

comment:6 by Christian Boos, 15 years ago

Milestone: 0.120.12-multirepos

in reply to:  4 comment:7 by Remy Blank, 15 years ago

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

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.