Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
101Source Integration[All Projects] Generalpublic2010-02-19 01:062010-04-12 10:42
ReporterPhilipp Beckmann 
Assigned ToJohn Reese 
Product Version 
Target Version0.14Fixed in Version0.16 
Summary101: Method to refresh all repos via cron
DescriptionWe use cron to refresh our repositories. With the preferred method (curl [^]), we have to register every repository by its ID.

I attached a hack that refreshes all repos by simply looping over the output of "SourceRepo::load_all()". Run with: curl http://localhost/mantisbt/plugin.php?page=Source/refresh_all_repos [^]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (119)
John Reese (administrator)
2010-03-15 14:00

Fix committed to master branch at 2010-03-15 20:09:45.
User avatar (120)
John Reese (administrator)
2010-03-15 14:41

Philipp, just as a follow-up, I implemented your idea as an extension to the repo_import_latest page, so that using curl to hit a url like http://your.domain/mantisbt/plugin_page.php?page=Source/repo_import_latest&id=all [^] will trigger an import to all the repositories in your system. It does what you needed, but maintains the current remote import IP whitelist and such, without duplicating a lot of code.

Cheers, and thanks for the idea. :)
User avatar (178)
John Reese (administrator)
2010-04-12 10:42

Just as an FYI: recent commits have changed the way this new feature works. Remote imports now use a separate page ("import"), and still supports id=all. The existing page "repo_import_latest" has been updated to require an authenticated user session, and no longer supports id=all as there is no UI method of getting to that point.

- Related Changesets
Source Integration: master 7d5409de
Timestamp: 2010-03-15 20:09:45
Author: John Reese
Committer: John Reese
Details ] Diff ]
Fix 101: Allow importing of all repos via id=all

Reworked import processing to allow passing id=all to the GET query
instead of a numeric Repo ID. With this argument, the system will
automatically run the "import latest" for all repositories configured
for source integration. This will simplify the process for keeping a
large number of repositories up to date via cron job.

Cleaned out output from repository import to look nicer, and support an
eventual UI option to import latest from all repos.
mod - Source/pages/repo_import_latest.php Diff ] File ]
mod - Source/lang/strings_english.txt Diff ] File ]

- Issue History
Date Modified Username Field Change
2010-02-19 01:06 Philipp Beckmann New Issue
2010-02-19 01:06 Philipp Beckmann File Added: refresh_all_repos.php
2010-02-19 06:12 John Reese Assigned To => John Reese
2010-02-19 06:12 John Reese Status new => assigned
2010-02-19 06:12 John Reese Category WebSVN => General
2010-02-19 06:12 John Reese Target Version => 0.16
2010-03-15 14:00 John Reese Note Added: 119
2010-03-15 14:00 John Reese Status assigned => resolved
2010-03-15 14:00 John Reese Fixed in Version => 0.16
2010-03-15 14:00 John Reese Resolution open => fixed
2010-03-15 14:00 John Reese Changeset attached master 7d5409de =>
2010-03-15 14:41 John Reese Note Added: 120
2010-04-12 10:42 John Reese Note Added: 178

Copyright © 2000 - 2012 MantisBT Group
Time: 0.1189 seconds.
memory usage: 8,357 KB
Powered by Mantis Bugtracker

hosted with