|
|
|
|
|
- Overview
- Managing the repository
- Connecting to a repository
- Creating a repository
- Managing files
- Managing directories
- Managing favorites and versions
- Managing favorites
- Restoring a project version
- Managing the files of the SCM repository
- Check-in and check-out operations, etc.
- History and differences
- Sharing files
SCM administrator: Managing repositories
The SCM administrator gives you direct access to the source code of projects included in the Source Code Manager. It allows you to: - manage repositories (create or connect to a repository).
- manage files and directories located in a project in the repository (add, delete, rename, etc.).
- manage the different files of the repository (check-out, check-in, share, etc.).
The SCM administrator can also be used to perform maintenance operations on the repository, etc. For more details, see SCM administrator overview. Connecting to a repository To connect to a repository: - In the SCM administrator, on the "Inicio" tab, in the "Repositorio" group, click "Conexión ".
- Specify the characteristics of the repository (location, user, etc.). This accessed repository can be:
- a local repository (HFSQL Classic).
- an HFSQL Client/Server SCM repository.
- an SCMDrive repository (paid turnkey solution, on a shared server). To create this repository, log in to SCMDrive.
- a PCSCloud repository (paid turnkey solution, on a dedicated server). To create this repository, a cloud account must be created. For more details, log in to PCSCloud.
- Validate. If the SCM repository is accessible, you are automatically connected to this SCM repository.
Creating a repository To create a repository: - In the SCM administrator, on the "Inicio" tab, in the "Repositorio" group, click "Nuevo repositorio".
- Specify the type of repository: SCMDrive or PCSCloud, Network share or HFSQL Client/Server mode. For more details, see Creating a repository.
- Validate. If the repository is accessible, you are automatically connected to this repository.
The SCM administrator is used to: - Add a file: On the "Inicio" tab, in the "Archivo" group, click "Agregar". This option allows you to add a file found in the local project into the reference project.
- Rename a file: On the "Inicio" tab, in the "Archivo" group, click "Renombrar". This option allows you to rename the file currently selected in the SCM administrator. This file is located in the reference project (found on the SCM server).
Note: This operation should be performed carefully. Indeed, the renamed file will not be available to the SCM users until a full project synchronization is performed. We advise you to rename the file in the local project then to update the reference project. - Delete a file: On the "Inicio" tab, in the "Archivo" group, click "Eliminar". This option allows you to delete the selected file from the SCM administrator. This file is located in the reference project (found on the SCM server).
Remarks: - This operation must be performed carefully. Only files that are not used by the project can be deleted. Otherwise, deleting a file from the SCM may trigger problems with the project.
- For shared files, only the specified file is deleted. Shared copies in other folders are kept.
To restore a deleted file: - Open the properties of the project directory in the Source Code Manager ("Properties" in the context menu of the directory).
- Select the "Deleted elements" tab and restore the desired files.
Note: You can also delete or rename a file by selecting the corresponding option in the context menu. The SCM administrator is used to: - Add an existing directory: On the "Inicio" tab, in the "Directorio" group, click "Importar un directorio local". This option allows you to import a directory found in the local project into the reference project for example.
Note: Do not use this option to add a project into the SCM. To add a project to the SCM, see Configuring a project for the SCM. - Create a new directory: On the "Inicio" tab, in the "Directorio" group, click "Nuevo". This option allows you to create a new directory in the reference project.
Note: You can also create a directory via the context menu of the SCM explorer ("Create a new directory"). - Delete a directory: On the "Inicio" tab, in the "Directorio" group, click "Eliminar directorio". This option can be used to delete a directory from the SCM repository for example. You also have the ability to delete a project from the SCM (to do so, delete the corresponding directory). The deleted directory is the directory selected in the SCM explorer.
Caution: This operation cannot be undone. Note: You can also delete a directory via the context menu of the SCM explorer ("Delete"). - Rename a directory: On the "Inicio" tab, in the "Directorio" group, click "Renombrar". This option allows you to rename a directory in the SCM repository. The directory used is the one selected in the SCM explorer.
Caution: This operation cannot be undone. Note: You can also rename a directory via the context menu of the SCM explorer ("Rename"). - Define the associated local directory: On the "Directorios y proyectos" tab, in the "Directorio local" group, click "Cambiar directorio local ". This option allows you to specify the name of local directory associated with the project found in the SCM repository for the current user.
Note: You can also define the associated local directory via the context menu of the SCM explorer ("Define the associated local directory"). - Move a directory: You can also move a directory via the context menu of the SCM explorer ("Move..."). Simply specify the new location of the selected folder in the SCM. This operation takes branches into account. If the moved directory corresponds to a branch, the project at the new location will still correspond to the same branch.
- Share a directory: You can share a directory via the context menu of the SCM explorer ("Share..."). Simply specify the directory in which the current directory is to be shared.
Note: You can also drag the directory you want to share and drop it onto its new location.
Managing favorites and versions Managing favorites The SCM administrator allows you to define "favorite" projects. To delete a favorite project: - Select the desired project on the left section of the SCM administrator.
- Select "Add to favorites" in the context menu.
- The project appears in the list of favorite projects in the left section of the SCM administrator.
Note: You can also use the menu of the SCM administrator to set a project as favorite. To do so, go to the "Directorios y proyectos" tab, "Favoritos" group and click "Agregar a favoritos". To delete a favorite: - Select the desired project in the favorites area on the left section of the SCM administrator.
- Select "Delete" in the context menu.
Restoring a project version The SCM administrator allows you to restore a specific version of a project (corresponding to an earlier version of the project, stored in the history). To restore a project version: - Select the desired project on the left section of the SCM administrator.
- Select "History" in the context menu. The "History of a directory" window is displayed.
- In the table, select the desired version of the project.
- Click the "Save as" button.
- Select the directory where the specified version of the project must be saved.
- Validate. The desired version of the project is automatically saved in the specified directory.
Managing the files of the SCM repository The SCM administrator allows you to perform all check-in and check-out operations. You can also see the history of the changes made to each element, see the differences or share the elements between several projects. Check-in and check-out operations, etc. The SCM administrator can be used to perform the following operations: - Get the latest version of the selected file.
- Check out the selected file to the local directory of the project.
- Check out the selected file for test
- Check in the selected element.
All these operations can be performed in WINDEV, WEBDEV or WINDEV Mobile. We advise you to perform these operations directly from the relevant project. History and differences To see the history of changes made to a file (check-in and check-out operations), you must: - select the desired file.
- on the "Archivos" tab, in the "Archivo" group, click "Historial ".
The window that is displayed is used to: - Get an earlier version.
- Save an earlier version under a new name.
- Compare two versions.
- Merge.
To compare the local version with the version found in the SCM repository: - select the desired file.
- on the "Archivos" tab, in the "Archivo" group, click "Comparar".
Sharing files The SCM administrator allows you to share files between several projects. These files can be sets of procedures, analyses, etc. This operation can be performed in the SCM administrator only. You can: - Share a file: On the "Archivos" tab, in the "Compartir" group, click "Uso compartido". This option lets you share the selected file with another project in the SCM.
- Unshare a file: On the "Archivos" tab, in the "Compartir" group, click "Eliminar uso compartido". This option is used to unshare the file currently selected in the SCM administrator. This file is located in the reference project (found on the SCM server). The file will no longer be shared between the different projects of SCM. The file remains in each project.
Note: This operation should be performed carefully. Indeed, if the share is deleted, the files will evolve independently in each project.
How to share from the SCM administrator: - Open the SCM administrator: On the "SCM" tab, in the "Repositorio" group, expand "Administrar" and select "SCM administrator".
- In the SCM administrator:
- Select the files to share in the directory of the source project.
- Drag and Drop these files to the directory of the second project that shares these elements.
- Accept to share the files.
Important: The SCM administrator does not allow sharing dependencies of elements. The share of files should be implemented from the interface of WINDEV, WEBDEV or WINDEV Mobile. For more details, see Sharing SCM files.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|