Edgewall Software

Ticket #1844 (new defect)

Opened 3 years ago

Last modified 6 months ago

trac-post-commit should go fine with svn merges

Reported by: Christian Parpart <trapni@…> Owned by: cboos
Priority: normal Milestone: not applicable
Component: version control Version: devel
Severity: minor Keywords: post-commit-hook svk helpwanted
Cc:

Description

Hi,

as I got *NO* response in the list, I'm trying it here.

trac-post-commit interprets fragments like "closes #7", "refs #8" and alike.

When a merge happens (using svk) e.g. using the following command: svk smerge -l /bugfix-branch /stable-branch where -l specifies to use the prio commit log messages as merge commit log messages;

this implies that the above mentioned "refs #8" (and alike) will be interpreted again.

is there a way to fix this in trac-post-commit?

Attachments

Change History

Changed 3 years ago by cboos

In the scenario you described, I think it makes sense for the commit message to be interpreted again, as this helps you to keep track in which branches the fixes have been incorporated.

Changed 3 years ago by cmlenz

  • milestone 0.9 deleted

Later (if this is even an issue)

Changed 21 months ago by cboos

  • keywords post-commit-hook svk helpwanted added
  • owner changed from jonas to cboos
  • component changed from general to version control
  • milestone set to none

I don't have svk installed at hand, but I think that if you don't also specify --verbatim, you'll get a header for the smerge commit log. In the post-commit hook, that could be used to special case this situation.

Changed 6 months ago by Jason Winnebeck <jpwasp@…>

Yeah, in my environment I specifically do want the "refs" to process again (although I'm doing merging through another took than svk). However, the problem is with the "closes" command -- if a ticket is reopened you might not want to close it when copying an old command.

I don't think this is a problem that Trac could solve, though, since it doesn't know the source of any particular commit. trac-post-commit-hook can't solve every situation, or you could modify it to handle the svk cases.

Add/Change #1844 (trac-post-commit should go fine with svn merges)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.