
So is there any downside of Keeping a Reintegrated Branch Alive? It seems like keeping it alive would be more convenient, and I can't think of any obvious downsides. This seems appealing in my scenario, as it would appear to allow me to safely persist my V1 branch. So I then saw the SVN Book section on "Keeping a Reintegrated Branch Alive". One of them is related to reintegrating a branch into the trunk. if I chose the wrong revision when resurrecting). There are quite a few SVN commands that I do not use so often but that I need every once in a while. This is a more general case of the reintegrate method. This seems like a bit of a hassle, and introduces additional steps that could introduce human error (e.g. If you leave the revision range empty, Subversion uses the merge-tracking features to calculate. Then switch back to V2.Įventually, I would merge the additional V1 changes into trunk or into the V2 branch-I haven't tested that yet, so I'm not sure of the best approach.īut in this scenario, if I use -reintegrate when originally merging the V1 branch into the to trunk (and then deleting the V1 branch), my understanding is that I would need to resurrect V1 to make fixes. I want to switch back to V1 again, fix the issue, and prepare a new V1 release. The next day, I am informed about some other issue in production that needs to be fixed ASAP. I then switch batch to V2 and resume coding. I want to "switch" to the V1 branch fix the bug, and prepare a new V1 release for production. svn merge -reintegrate /calc/branches/my-calc-branch - Merging. I then learn about a bug in V1 that was identified in production. In Subversion, a global revision number N names a tree in the repository: its the.
#SUBVERSION REINTEGRATE CODE#
I then create a new branch V2, and start development of new features and code changes to the app. Here is a scenario that I have had: Branch V1 is deployed to production and working well, so I merge it into trunk. But I'm wondering whether this would be a hassle if you had to revisit a branch to fix a bug. Subclipse Subclipse SVN 1.4 svn:mergeinfo-reintegrate -record-only 1. For this reason, if you want to keep working on your feature branch, we recommend destroying it and then re-creating it from the trunkĪfter further reading, I understand the technical reason behind this statement, and it makes sense. See Subversion 1.8 Release Notes entry related to the.


Reintegrate merges are now performed automatically. Beginning with SVN 1.8, -reintegrate option has been deprecated. The problem you ask about was solved in Subversion 1.8. SVN 1.8 is also supported now and still receives bug fixes. In tortoiseSvn 1.8 there is no reintegrate. It's not able to correctly absorb new trunk changes, nor can it be properly reintegrated to trunk again. As of 2016, the current version is Subversion 1.9. Tortoisesvn Subversion 1.8 merge no more reintegrate a branch option. Once a -reintegrate merge is done from branch to trunk, the branch is no longer usable for further work. While reading the SVN Book, I was surprised when I read this: I am new to SVN and am using VisualSVN with Visual Studio.
