Default SVN Index to start at HEAD Revision?

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

This widget could not be displayed.

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

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

140 views 5 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you