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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Configuring regular expression in Fisheye for SVN Symbolic Rules

I'm attempting to configure a repository using SVN Symbolic Rules because my repository uses uppercase Trunk, Branches, and Tags instead of the expected lowercase. But I'm having trouble getting the Regular Expression correct. 

The repository takes the form:

As an example, for the Trunk, I tried the regular expression:

Regular Expression: ([Tt]runk){1}(.[^\/]+)
Name: ${1}
Logical Path Prefix: ${2}

When I run the URL using the Test Path:

https://svn.myrepository.com/svn/ABC/MyProject/Trunk/Some.config

It comes back with "No Logical Path"

I also tried using some of the examples I've seen in Atlassian's documentation, but they also don't seem to work.

Regular Expression: Trunk/([^/]+)
Name: ${1}
Logical Path Prefix: <blank>

1 answer

0 votes

Hello!

It looks like these are not among the default presets, so please make sure that you have "Use Built-in Symbolic Rules" unticked, and the "And then Apply the Following Rules" set to "Custom".

Also, please note that you can have more than one rule for the trunk / branches / tags structure by clicking the "Add" link next to them, so you can use more than one Regular Expression for each.

For example:

Here you can see that I have a file at "/trunk/file.txt".

Screen Shot 2017-10-11 at 17.32.03.png

Now, have a look at the SVN Symbolic Rules:

Screen Shot 2017-10-11 at 17.31.06.png

As can be seen here, I have defined more than one Regular Expression for Trunk, for Branches and for Tags, in order to make things easier.

When I typed the path "trunk/file.txt" and hit the "Test path" button, it was recognized as valid. If I modify the path to "Trunk/file.txt", it is also recognized as valid.

I hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

88 views 1 0
View question

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you