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

Updated Wiki: PlasticSCM – Adding an existing VFP project

$
0
0
Previous: PlasticSCM - Download and configuration

PlasticSCM – Adding an existing VFP project

Before adding a project you need to normalize the capitalization, so right-click the root folder of the project and chose “Send To” > “Normalize_Filenames”, and all files will be capitalized (names maintain their caps, and extensions are converted to lower case)
Next step is to generate all the tx2 files for the project, so right-click again the root folder of the project and chose “Send To” > “Convert_VFP9_BIN_2_PRG”

Creating de ignore.conf file

This config file is used to filter unwanted files that are not useful into the SCM. You can create this file on the workspace root (project root dir) with at least this content:

*.7z
*.bak
*.fxp
*.lnk
*.log
*.mpx
*.dbf
*.fpt
*.cdx
*.dbc
*.dcx
*.dct
*.scc
*.spx
*.tbk
*.zip


Before adding the readme.txt to source control, verify the capitalization, and then add it in:

PlasticSCM_en_work_01_adding_a_readme_txt.png


Once added, change to “Pending Changes” view, verify that the file is there, and then checkin:

PlasticSCM_en_work_02_PendingChanges_readme_txt.png


Once the file is checked in, you can see the new “changeset” created in the “Branch Explorer” view:

PlasticSCM_en_work_03_BranchExplorer_first_changeset_with_readme_txt.png


Now you can add all the project files to the source control tool, using the “Items” view on Plastic GUI, the faster way is choosing directories (forms, classes, bitmaps, etc) with “add directory tree to source control”.

Note: I don’t recommend adding data tables, because they can use too much space, but you can checkin the db2 and dc2 files that have the structure info of them created by FoxBin2Prg.

Before adding files to source control, verify the capitalization, and then add them in:


plasticscm_en_work_04_adding_a_folder.png


plasticscm_en_work_04_adding_a_folder_mark.png


plasticscm_en_work_05_adding_files.png


Once files are added, change to “Pending Changes” view, verify that all wanted files are there, and then checkin:

plasticscm_en_work_06_PendingChanges_all_files.png


Once files are checked in, you can see the new “changeset” created in the “Branch Explorer” view:

plasticscm_en_work_07_BranchExplorer_all_files.png


You can add more files, directories or extensions if you need, using the Plastic GUI (right click a file or folder on “Items” view and see the options)

Now is a good time to label this release as “v1_0” (adapt to your current version), so right-click the last changeset, choose “Label this changeset” and put “v1_0”:

plasticscm_en_work_08_label_release_1_0.png


Congratulations! Your project is under source control and versioned! :-)


Note:

In the case that you plan to sync your project to GitHub, for the first changeset (first checkin) you need to add only the readme.txt file!, and on next checkin you can add the rest of the project files. This is a requirement of Git, not a Plastic one, because the first file is what is shown on the top page on GitHub as presentation.

Anyway, it is a good practice to first checkin the readme.txt alone.

Index of contents:

Using FoxBin2Prg with PlasticSCM
PlasticSCM - Download and configuration
PlasticSCM – Adding an existing VFP project
PlasticSCM – Working with branch per task
PlasticSCM – Working with branches with a second developer on same task
PlasticSCM – What’s next
Next: PlasticSCM – Working with branch per task

Viewing all articles
Browse latest Browse all 3798

Trending Articles



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