Is there a way to restrict the fetch changeset process to a specific project? (from within a subversion hook)

Added by Cheyenne Wills over 7 years ago

Is there a way to have the Repository.fetch_changesets process accept a project identifier and restrict the processing to just that project?

Replies (2)

RE: Is there a way to restrict the fetch changeset process to a specific project? (from within a subversion hook) - Added by Cheyenne Wills over 7 years ago

I may have figured out a way to do this..

simply run:

redmine/script/runner "Project.find('..projname..').repository.fetch_changesets" -e production

Will probably have to add some additional logic around the post-commit to ensure all changes are picked up in the case of a back-to-back commit (fetch_changesets doesn't complete before 2nd commit happens)

RE: Is there a way to restrict the fetch changeset process to a specific project? (from within a subversion hook) - Added by Etienne Massip over 7 years ago

You can also use wget and the sys URL and specify project by passing an extra id parameter, see RedmineRepositories examples.

(1-2/2)