Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to configure multiple trunks?

Steffen Breitbach February 4, 2015

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

0 votes
Maciej Swinarski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2015

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

 

0 votes
lpater
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events