how does the svn plugin treat branches when they are merged

WE have developers working on a branch of the code when they are satisfied they are merging their changes with the main code. The checkins they have done are in the branch. but the Repository path we have setup in JIRA is the main. When the code bases are merged the svn tab does not show the checkins which were done in the branch. is there a way for the plugin to get the commits from the branch after they are meged.

1 answer

The simple answer is no.  The plugin just sees the message when the commit was done after the merge.   If you want to collect the commit messages you will need to build a separate tool and then put those messages into the commit message after the merge.

  1. svn log -v --stop-on-copy http://repo/branch
    Use this output to figure out the revision number representing your last merge from the branch to trunk. (XXXX)

  2. svn log -rXXXX:HEAD http://repo/branch > messages.txt
     This collects all your commit messages.

  3. Perform the merge

  4. svn commit -F messages.txt


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

449 views 8 26
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