In case you are not familiar, a Subversion branch is a different line of development which has the contents copied from the main line and is, therefore, identical to it until more development is done on this new branch.
The typical case is where the developer creates a branch to used for bugfixes to a version with no further development planned while the main branch, or HEAD, goes on with new features.
This recipe will show how to create a branch.
For more information on how to setup NetBeans and Subversion, please, refer to the first Getting Ready section at the beginning of this chapter.
Let's perform the following steps to create a new branch:
NBCookbookSVN-V1
and click OK.By visiting your Subversion server, in our case Sourceforge, we can check that the branch was successfully created.
Merging a branch back into MAIN.
Branching a project is very important for all the benefits that it brings, such as fixing certain bugs or introducing features specific for some usage. And more often than not we will need to fold those changes back into the main development line. The action of integrating those changes is called merging.
Merging can become quite tricky when product development is far down the line. Especially if that merging is done through the command-line. Having the IDE do some of the hard work and presenting the user with detailed notifications could come in handy.
On this matter NetBeans also includes support for the merging technique.
To perform the merge:
The action we have just performed will bring changes from one of the repository.
Other options provided by NetBeans include bringing changes from Two Repository Folders, as shown in the following screenshot:
And the One Repository Folder Since its Origin option brings changes from the user-specified revision number and when the branch was created:
3.137.214.194