Edgewall Software
Modify

Ticket #3368 (closed enhancement: worksforme)

Opened 6 years ago

Last modified 3 years ago

Repository subset support in commit hooks

Reported by: mgood Owned by: cboos
Priority: normal Milestone:
Component: version control Version: 0.9.6
Severity: normal Keywords: post-commit hook multiproject multirepos
Cc:
Release Notes:
API Changes:

Description

One of the issues mentioned in #2789 was that the commit hook scripts don't handle the setup where you have one repository containing many projects. You can only have one commit script for the repository, so it needs to determine based on the path of the commit which projects it pertained to.

Attachments

Change History

comment:1 Changed 5 years ago by cboos

  • Keywords post-commit hook multiple project added
  • Milestone set to 2.0

comment:2 Changed 3 years ago by cboos

  • Milestone changed from 2.0 to 0.12

The new post-commit hook in MultiRepos makes this possible. We should add an example.

comment:3 Changed 3 years ago by cboos

  • Owner changed from cmlenz to cboos

comment:4 Changed 3 years ago by cboos

  • Keywords multiproject multirepos added; multiple project removed

I think the new hook (trac-svn-hook) handles this situation correcly.

Let's imaging the following repository structure:

  • projA/{trunk,branches,tags}
  • projB/{trunk,branches,tags}

Now we have Trac envA using projA as its scope and Trac envB using projB as its scope.

By specifying a TRAC_ENV variable /path/to/envA:/path/to/envB, both environments will be notified of new changesets and changesets "out of scope" will be ignored.

comment:5 Changed 3 years ago by cboos

  • Milestone 0.12 deleted
  • Resolution set to worksforme
  • Status changed from new to closed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cboos. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.