Edgewall Software
Modify

Opened 11 years ago

Closed 8 years ago

#3368 closed enhancement (worksforme)

Repository subset support in commit hooks

Reported by: Matthew Good Owned by: Christian Boos
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 (0)

Change History (5)

comment:1 Changed 10 years ago by Christian Boos

Keywords: post-commit hook multiple project added
Milestone: 2.0

comment:2 Changed 8 years ago by Christian Boos

Milestone: 2.00.12

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

comment:3 Changed 8 years ago by Christian Boos

Owner: changed from Christopher Lenz to Christian Boos

comment:4 Changed 8 years ago by Christian Boos

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

Milestone: 0.12
Resolution: worksforme
Status: newclosed

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.