Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Updated Wiki: PlasticSCM - Download and configuration

$
0
0
Previous: Using FoxBin2Prg with PlasticSCM

Download and installation

Download Plastic from this link, previous registration, then download the Free Community License for 15.
Because the license has 1 year expiration from the moment you download it, you better use a real email (not a temp one) because every year you will need it again to renew the free license downloading the new one.

Start the installation with the language selection:
img:PlasticSCM_en_Installation_01_lang_select.png

In component selection check only what you are going to use:
img: PlasticSCM_en_Installation_02_component_selection.png

On install options just mark this 2:
img: PlasticSCM_en_Installation_03_install_options.png

If using alone or without Active Directory (as I do) then select user/password user security:
img: PlasticSCM_en_Installation_04_server_security_config.png

Configure the server:
img: PlasticSCM_en_Installation_05_server_config.png

Make sure you understand this message, you can later migrate to a bigger database if you want:
img: PlasticSCM_en_Installation_06_server_sqlce_warn.png

Configure the client (don’t use “localhost”, you better use the server name because later you don’t want to see duplicated repositories as localhost and server name, which are the same):
img: PlasticSCM_en_Installation_07_client_config.png

Select the same user authentication used for the server:
img: PlasticSCM_en_Installation_08_client_security_config.png

If using this authentication, surely a user manager appears so you can add the first user (you:) and then you will be asked to use a default user, selecting your user again.

At this point the installation is ended. Now you copy your plasticd.lic license file to the “server” directory under Plastic installation directory and then start the Plastic service:
img: PlasticSCM_en_Installation_09_start_Plastic_Service.png

VERY IMPORTANT!
Please, read this link carefully, specially the last “Note” and do not forget to set a owner of the Plastic server using the cm command line tool, because if you reach or overcome the 15 users license, then Plastic will block because the mentioned license limit, and the only way to unblock it is using the admin user configured as owner of the Plastic server (don’t need to be a real server admin, just a user you designate as Plastic admin), so with this user you can deactivate unused user licenses and the rest of devs can continue working. (Happened to me and resolved it, so that’s why this warn and the solution. Keep at hand.)
For your information, a user license is activated on first checkin, but you can deactivate a user license when you like.

Creating the first repo (repository)

On first Plastic launch you will see a screen like this one (but in the selected language):
img: PlasticSMC__Inatalacion__16.png

on which you select the left “new” button to create the first workspace and repo:
img:PlasticSCM_en_Installation_10_workspace_and_repository_creation.png

That’s it! You have your first repo ready for use! But don’t run yet, some default configuration is needed.

Configuration

On left panel you see this options:
img: PlasticSCM_en_Configuration_01_Main_Actions.png

“Items” view is where you see all the files of the workspace, as you see them in Windows File Explorer.
“Pending Changes” view is the view you are going to use when checking in the modified files, and the view on which you will visually check the differences before the checkin.
“Branches” view show the branch names and dependencies, in an “concatenated dependency” list, as “main” or “main/brancha” or “main/brancha/dev-1”
“Branch Explorer” is the most used view where you can visually see the branches and the history of your project.
“Changesets” view show a list of changesets and related info as owner, timestamp, repository name, branch name, and more.

A workspace is just an alias for your work directory (the root app directory), so Plastic can show a tab on the GUI with this alias and bind to a repository. It’s not just for the GUI, it’s used for all internal operations too, even from command line with the “cm” command.

A repository is a database where your project is saved. You will use one project per repository, referenced by an alias called workspace, with the name you have chosen.
On Pending Changes vew configure this options:
img: PlasticSCM_en_Configuration_02_PendingChanges.png

On left panel configure “Preferences” / “Other Options” as this:
img: PlasticSCM_en_Configuration_04_OtherOptions.png

On same Preferences panel, configure Comments as this:
img: PlasticSCM_en_Configuration_05_Comments.png

On same Preferences panel, select "Diff Tools" and "add" this (copy/paste including the quotes):
External diff tool:
"C:\DESA\plastic\foxproplasticscmdm.exe" "'DIFF' '@sourcefile' '@destinationfile' '@sourcesymbolic' '@destinationsymbolic'"
Use with files that match the following pattern:
.pjx;.vcx;.scx;.frx;.lbx;.mnx;.dbf;.dbc
(then use the up arrow button to make this the top option in the list, as this picture shows)
img: PlasticSCM_en_Configuration_06_DiffTools.png


On same Preferences panel, select "Merge Tools" and "add" this (copy/paste including the quotes):
External diff tool:
"C:\DESA\plastic\foxproplasticscmdm.exe" "'PRESERVE_WS' '@sourcefile'"Use with files that match the following pattern:
.pjx;.pjt;.vcx;.vct;.scx;.sct;.frx;.frt;.lbx;.lbt;.mnx;.mnt;.dbf;.fpt;.cdx;.dbc;.dcx;.dct
(then use the up arrow button to make this the top option in the list, as this picture shows)
img: PlasticSCM_en_Configuration_07_MergeTools.png


On same Preferences panel, configure “Custom Open With” as this:

- Click "Add..." and complete the fields:
Display Name:
(VFP) All Files: Regenerate Binary
Full path to the executable:
<Path-To-FoxBin2Prg>\PlasticSCMVFP9AllFilesRegenerate_Binary.vbs
- Click OK

- Click "Add..." and complete the fields:
Display Name:
(VFP) All Files: Regenerate Text versions
Full path to the executable:
<Path-To-FoxBin2Prg>\PlasticSCMVFP9AllFilesRegenerate_Text.vbs
- Click OK

- Click "Add..." and complete the fields:
Display Name:
FoxBin2Prg
Full path to the executable:
<Path-To-FoxBin2Prg>\foxbin2prg.exe
- Click OK

- Click "Add..." and complete the fields:
Display Name:
Normalize File Capitalization
Full path to the executable:
<Path-To-FoxBin2Prg>\Normalize_FileNames.vbs
- Click OK

- Click "Add..." and complete the fields:
Display Name:
(VFP) Pending Changes: Regenerate Binaries
Full path to the executable:
<Path-To-FoxBin2Prg>\PlasticSCMVFP9PendingChangesRegenerate_Binary.vbs
- Click OK

- Click "Add..." and complete the fields:
Display Name:
(VFP) Pending Changes: Regenerate Text versions
Full path to the executable:
<Path-To-FoxBin2Prg>\PlasticSCMVFP9PendingChangesRegenerate_Text.vbs
- Click OK

You can add Notepad++ too, it's useful to see text files directly from Plastic GUI

It's a good idea to create shortcuts of this programs too: "NormalizeFileNames.vbs", "ConvertVFP9BIN2PRG.vbs", "ConvertVFP9PRG2_BIN.vbs" and "FoxBin2Prg.exe" and copy these accesses into "SendTo" folder of your Windows profile, so you can use this options from contextual Windows File Manager menu, right-clicking over a selected file or directory and choosing the required option

img: PlasticSCM_en_Configuration_08_CustomOpenWith.png

About FoxBin2Prg messages localization:
If you want FoxBin2Prg messages on your language (it defaults to Spanish), then you should download the full FoxBin2Prg project from VFPx, rename one of the language files available and recompile your own EXE, to replace the EXE available within Plastic tools, that defaults to Spanish too.
A word about Capitalization:
Plastic is a multiplatform tool, so it can be installed on Windows, Mac and Linux (using MONO framework), and been multiplatform, there are two things to take into account that can be different on those platforms: the end of line characters (CR+LF in Windows, LF in Unix) and capitalization (Windows don’t care THIS or this, in Unix they can be two different files in the same dir).
The key question is maintaining always the same capitalization on checked in files, and FoxPro have a fame of not taking care of it, so that’s why FoxBin2Prg have included a capitalization tool (filenamecaps.exe) that is executed every time a conversion is made, and that can be used separately with a provided script (NormalizeFilenames.vbs). This normalization has to be made before the checkin. Remember this, and all will be all right.

Ok, now we are finished the default configuration for all actual and future projects!

Next: PlasticSCM – Adding an existing VFP project

Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>