Default SVN Index to start at HEAD Revision?

Blake Piechocki April 28, 2014

So we have some very large and old repositories complete with branches upon branches upon branches... Because of this, we would like to start out with FishEye indexing the current HEAD revision for each repository, then just maintain the scanning going forward.

I did find where I can specify the revision to start with indexing, but was unable to find where I could set a default to always start at the HEAD... Is there a way to do this without having to look up and specify the HEAD revision number?

Bonus points if there is a solution that includes the ability to configure this with the Directory Scanning plugin as well (because I don't want to add 1600+ repos by hand).

Thank you!

1 answer

1 accepted

1 vote
Answer accepted
Piotr Swiecicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 28, 2014

Hi Blake,

I am afraid FishEye accepts number only and it is impossible at the moment to specify the current HEAD at the moment of first contacting the repo. Directory Scanning Plugin wouldn't allow non number too. Feel free to raise an ehancement request for that in http://jira.atlassian.com/browse/FE project.

With your 1600+ repositories you will most likely need to script that. Hopefully you could iterate over all the repos, check the current head revision with svn CLI. You can then use new REST API added in 3.4.0 release, which allows now easy repository creation, see documentation of POST /rest-service-fecru/admin/repositories: https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:repositories
In the examples provided you can see how to specify start version.

EDIT: you can find example python client for this REST API here: https://bitbucket.org/atlassian/fecru-rest-examples/src/7ef244fe086bad2a1866b140c5a831f9b7053ac5/python/examples_repositories.py?at=master

Hope that helps,
Piotr

Blake Piechocki April 28, 2014

Thank you for answering!!

I was afraid that was going to be the answer, but wanted to verify just in case I missed something.... But the REST API sounds very promising!! I will definitely be checking that out.

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events