How to configure multiple trunks?

We have a SVN structure which is something like this:

/svn/product/component1/service/trunk
/svn/product/component1/service/branches/branch1
/svn/product/component1/client/trunk
/svn/product/component2/service/trunk
/svn/product/component2/client/trunk
...

I have configured the repository to
SVN URL /svn/
Path /product/

I did not want to have all the components in one trunk, so I configured custom SVN Symbolic Rules. For example:

Trunk

Regular Expression ([^/]+)/([^/]+)/trunk(/|$)
Name ${1}-${2}-trunk
Logical Path Prefix ${1}/${2}

Branches

Regular Expression ([^/]+)/([^/]+)/branches/([^/]+)
Name ${1}-${2}-${3}
Logical Path Prefix ${1}/${2}

Testing I get:
/component1/service/trunk/path/to/file.java

Container trunk:component1-service-trunk
Logical Path component1/service/path/to/file.java
Logical Tail path/to/file.java

/component1/service/branches/branch1/path/to/file.java

Container branch:component1-service-branch1
Logical Path component1/service/path/to/file.java
Logical Tail path/to/file.java

To me that looked good so far. However, creating a branched-based review, I run into errors. First error is that there is no "trunk" which is obvious in my configuration. However, if I select the proper "${1}-${2}-trunk", I get the error "Attempt to add too many revisions to a review - no more than 800 file revisions are allowed."

Looking into the Commit Graph, no branching can be seen either.

Point being: is Fisheye unable to handle "dynamic" trunk names like this? Do I absolutely have to use "trunk"?

2 answers

This widget could not be displayed.
Lukasz Pater Atlassian Team Feb 23, 2015

Hi Steffen,

Thanks for your report.

The problem you're seeing seems similar to the known issue with branch reviews for certain SVN custom symbolic rules configuration. This is tracked as https://jira.atlassian.com/browse/CRUC-7040, please watch that issue for updates.

Your symbolic rules configuration looks okay at a glance, and branch reviews should be able to cope with having multiple trunks. We'll investigate and update further via the JIRA issue. 

This widget could not be displayed.

Hi Steffen Breitbach,

There is a bug that FishEye and Crucible will always assume there is a a trunk with "trunk" name in any svn repository. This will appear in :

  • the default base branch on the branch review screen
  • the first branch at the branch selector list on the branch review screen
  • the first branch at the branch selector list on the repository browser

I have created a bug https://jira.atlassian.com/browse/FE-5558 and thats why you are getting the first "there is no trunk" error.

However I am unable to reproduce the problem that the branch review would try to include the initial base branch in the review. Also the fact that the Commit Graph is not showing branching is worrying.

Could you please tell me:

  • how do you create branches in svn (command example)
  • do you have any excludes defined for this svn repository

Best regards,

Mac

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

130 views 1 3
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