|
|
|
|
|
Branches allows you to create a copy of the current project, so that you can make changes, additions, etc., to two versions of the same project. For example, if you want to prepare a new version of your application and fix issues in the current version, you need to create a branch. The main project will be the project corresponding to the new version and the branch project will be the deployed project, in which the bug correction will be performed. Note: With project portfolios, you can create a branch on a set of projects in a single operation. For more details, see Project portfolio. You can create a branch: - from the editor in which the project is open.
- from the SCM administrator.
In this case, you can also create a branch in a directory that does not contain any project.
To create a branch: - Open your project.
- On the "SCM" tab, in the "Project" group, expand "Branches" and select "Create a branch".
- The branch creation wizard starts. This wizard allows you to create a copy of the project branch, locally on your computer and in the SCM repository.
- Specify a name for the branch. This name can include letters, numbers, etc. This name is important because it will be used:
- to identify the directories of the projects affected by the version,
- to identify the different versions in the project history, etc.
- Go to the next step.
- Specify the name of directory to create for the branch.
By default:
- a new directory is created in the SCM. By default, this directory has the following format "Branches\<Branch name>\<Projects WX>\<Project name>". The SCM project will be duplicated in this directory.
- a new directory is created locally. By default, this directory is created in "MyProjects.Branches\<Branch name>\<Project name>". This directory will contain the local project of the branch.
Note: Suggested names are default directory names. To modify these names: - On the "Home" tab in the "Environment" group, expand "Options" and select "Source Code Manager options".
- On the "Branches" tab, specify the default location for the branches. This location itself is based on the default project location specified in the editor general options.
- Go to the next step.
- Specify the comment associated with the branch creation and select the options for creating the branch:
- Use local version as reference for the branch: Allows you to create the branch from the project version in the SCM (recommended) or from the local version.
- Find and recreate shares in the branch: Recreates all the shares between the different projects of the same branch. Note: This option does not automatically add projects with shared elements to the branch. The option recreates the shares when adding the other projects.
- Copy the project from the branch to local disk: Gets the project corresponding to the branch on the current computer. The project will be copied to the local directory corresponding to the branch. If this directory is unknown, you will need to specify it.
- Open the new project once the branch is created.: Directly opens the project corresponding to the branch. A new instance of WINDEV, WEBDEV or WINDEV Mobile will be run.
- Confirm. The specified projects are created locally and in the SCM.
Remarks - Sub-branches
You have the ability to create sub-branches (branch created from a branch). The modifications performed in a sub-branch cannot be directly retrieved in the version currently developed. The modifications of the sub-branch must be retrieved in the branch then the modifications of the branch must be retrieved in the version currently developed. - Creating a branch thereafter
You have the ability to create branches on an earlier version of the project by using the history. To create a branch thereafter:- Open the project history.
- Select the desired history version.
- Click "Create a branch".
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|