- This lesson will teach you the following concepts
- Integrating a project in SCM
- Adding the project into SCM
- Opening a project from SCM
- Configuring SCM
Lesson 12.2. Integrating a project in SCM
This lesson will teach you the following concepts
- Adding a project into SCM.
- Opening a project from SCM.
- Configuring SCM.
Estimated time: 15 mn
Integrating a project in SCM
Adding the project into SCM
To use an existing project with the Source Code Manager, simply include it in the repository.
|If you did not perform the operations in the previous lessons, you can follow this lesson by opening a corrected project: in the WEBDEV home page (Ctrl + <), click "Tutorial" and select "Full WEBDEV Site (Answer)".|
|Sharing project elements|
When the projects that share the same resources (same analysis, same windows, etc.) are included in the SCM, the relevant elements can be shared between the different projects. Therefore, the same element is checked in once only into the SCM and the modifications are automatically applied to the other projects.
Opening a project from SCM
In our example, the project is integrated in the SCM and it can be used directly.
In a real case, in order for other developers to work on a project found in the Source Code Manager, they must get a copy of this project locally.
To do so, the following operations must be performed:
- Open the project from the Source Code Manager: on the "Home" pane, in the "General" group, expand "Open" and select "Open a project from the SCM".
- Specify the location parameters of the repository and validate (this step is required only if the current project in the editor does not belong to the SCM):
- In the screen that is displayed, specify (if necessary) the connection and the local directory:
Remark: If the project was already opened from SCM, the SCM proposes to open the project as usual or to overwrite the content (to retrieve the entire project).
This operation must be performed once only by each developer who is using the project.
The developer who added the project into the Source Code Manager (you in this case!) has no operation to perform.
|The next openings of a project managed by SCM are identical to the openings of a project not managed by SCM: all you have to do is open the project (".WWP" file) corresponding to the local copy.|
Before you start working on the elements of project found in the SCM, you must configure the mode for checking out the project elements.
When working on the elements of a project in the SCM, the element must be checked out from the repository before it can be modified, then it must be checked back in once the changes have been made. Therefore, the modified element becomes available to all SCM users.
WEBDEV proposes two modes for checking out the project elements:
- the standard mode: if you display a SCM element that is not checked out, a panel indicates that the element must be checked out before it can be modified. The element can be checked out immediately (check-out button found in the dialog box).
- the automatic mode: if you try to modify a SCM element that is not checked out, the SCM automatically proposes to check out this element. Once the check-out is validated, the element can be modified.
Remark: this mode is not recommended when using SCM with a slow Internet connection.
The automatic check-out will be used in this tutorial.
- To make sure that the automatic check-out is enabled, on the "Home" pane, in the "Environment" group, expand "Options" and select "General options of WEBDEV". In the "General" tab, check (if necessary) "Check out elements during the first modification".
Click [Add] to post a comment