Crucible symbolic rules are not working even tho "test path" seems to give correct result

I created SVN symblic rules for our branching pattern. The "test path" button seem to print a result which is consistent with the example documentation, but cruicible recognizes all our files as part of the "root:" catch-all.

I am coming to you, hat in hand, to see if someone has some insight into this issue.

When we create a feature branch we branch out the whole trunk folder, so we get "a bunch of projects" in our new branch. This causes our line count to increase about 3 million each time we create a new branch, since crucible does not recognize them as branches.

Out branching structure is as follows:

  • Repository
    • _SomeIrrelevantFolder
    • _Trunk
      • OurCompany.SomeProject\SomeSubProject\SomeFile.cs
    • SomeFeatureBranch
      • ...
    • SomeOtherFeatureBranc
      • ...

These are the settings for SVN symbolic rules:

TRUNK
Regular expression: (.*)(/dotnetrepo/)_Trunk/
Name: trunk
Logical Path Prefix: ${1}${2}

BRANCHES
Regular expression: (.*)(/dotnetrepo/)([^_])([^/]*)
Name: ${3}${4}
Logical Path Prefix: ${1}${2}

TAGS
Regular Expression: (.*)DONOTMATCHTHISTEXT
Name: DONOTMATCHTHISTEXT
Logical Path Prefix:

These are the results of running "Test path":

TEST PATH: svn://svn.some.tld/dotnetrepo/_Trunk/Anon.Alarm/Anon.Alarm.Library/IoCRegistry.cs
Container trunk:trunk
Logical Path svn://svn.some.tld/dotnetrepo/Anon.Alarm/Anon.Alarm.Library/IoCRegistry.cs
Logical Tail Anon.Alarm/Anon.Alam.Library/IoCRegistry.cs

TEST PATH: svn://svn.some.tld/dotnetrepo/SomeBranch/Anon.Alarm/Anon.Alarm.Library/IoCRegistry.cs
Container branch:SomeBranch
Logical Path svn://svn.some.tld/dotnetrepo/Anon.Alarm/Anon.Alarm.Library/IoCRegistry.cs
Logical Tail Anon.Alarm/Anon.Alam.Library/IoCRegistry.cs

As far as I can gather from the results of the tests, these are the expected results. However, as I explained in the intro, all branches are "root:". I tried running the reindex multiple times, but no success.

Does anyone have some insight into this issue? Could someone please confirm if the results from my tests are in the correct format?

Best regards,
Pål Tuv

1 answer

1 accepted

Regexps are applied to paths within the repository, not to full URLs. So "(/dotnetrepo/)" part is not needed.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

692 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot