Project

General

Profile

Actions

Feature #2110

closed

Fetch new changesets of a specific repository by script

Added by Markus Peter about 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2008-10-29
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

As explained in the guide, the line

ruby script/runner "Repository.fetch_changesets" -e production

allows to periodically fetch all new changesets of all repositories.

It would be useful to be able to specify the name of the repository for which to fetch the changesets. That way, the script could be called in a post-commit hook and could fetch only the changesets of the repository which caused the post-commit hook to fire.

In a multi-project setup with numerous repositories it seems a waste of time and resources to check all repositories for new changesets every time a commit is made.

Ideally, one would be able to pass the url of the repository which usually is known to the post-commit handler. Redmine then would check whether there is a repository with the given url and call fetch_changesets of that repository only.

Actions

Also available in: Atom PDF