WEBDEV Concepts

98 Part 3: Development environment 4.2 Checking out an element The SCM includes two modes to check out the project elements: • standard mode : if you open an element that has not been checked out from the SCM, a panel indicates that the element must be checked out to modify it. The element can be checked out immediately (check-out button found in the dialog box). • automatic mode : if you try to modify an element that has not yet been checked out, the SCM automatically prompts you to check it out. Once the check-out is validated, the element can be modified. Remark: this mode is not recommended when using the SCM with a slow Internet connection. To change the check-out mode : 1. On the "Home" tab, in the "Environment" group, expand "Options" and select "General options of WEBDEV". 2.  In the "General" tab, the "Check out elements on first modification" option allows you to switch all subsequent projects to automatic mode. Opening a project element to change its characteristics To change the characteristics of a project element included in the SCM: 1. Check out the element from the Source Code Manager. 2. Select the check-out mode for the element. The check-out mode can be: • exclusive : nobody can check out this element until it is checked back in. The element can be checked out for tests only. • for test : the element can be modified but the modifications will not be checked back in. • multiple : the element can also be checked out by other users. In this case, the differences between the different element versions can be viewed when the element is checked back in. 3. Validate. The element is opened. The title bar indicates that the element is checked out. 4.3 Checking an element back in The elements checked out from the Source Code Manager are bordered by a red line in the project editor. To check in an element, go to the "Project explorer" pane and select "Check in" in the context menu of the element. A screen allows you to perform the following actions before checking the element back in: • view the changes made. • compare the element in the repository with the local (checked out) element. • access the element history in the repository. You can check in the changes made to the element while keeping the element checked out ("Keep element checked out" option). 4.4 Project management modes Two management modes are available with the SCM: • Managing the project in Master/Guest mode. • Managing the project in automatic mode (by default). Master and guest The Source Code Manager distinguishes between 2 types of users: • the master: the master is the user who initially stored the project in the Source Code Manager. • the guests: the guests are the developers who handle the project from the Source Code Manager. There is no need to be connected in master mode on a project. The "Master" mode is only required to: • change the project characteristics and check these changes back into the repository. • check all elements back in to create the site setup program. To switch from master mode to guest mode , go to the "SCM" tab, "Project" group, expand "Master/ Guest" and select "Become guest on the project (and check all in)". In this case, the Source Code Manager prompts you to check in all the project elements (including the .WWP file). To switch from guest mode to master mode , go to the "SCM" tab, "Project" group, expand "Master/ Guest" and select "Become master on the project".

RkJQdWJsaXNoZXIy NDQ0OA==