Set up a version-controlled project or user library using TortoiseSVN

The following example describes how to create a repository for a project or user library using TortoiseSVN. All commands of TortoiseSVN are left in English. Your working copy as well as the working copies of all other users are connected to the repository. With the help of the repository all changes to a project or library are available to all users.

Tip

Change the settings of TortoiseSVN so that the file date is set to the last commit date for all checkout and update operations. To do so, activate the checkbox Set file dates to the 'last commit time under TortoiseSVN > Settings.

In case you are using a different external version-control system, try to do the same setting.

Creating the project or user library repository has to be done only once for a development project. Users who want to participate in developing this project or user library and exchanging objects have to check out their working copy from this repository first.

The checkout target folder for a library working copy has to be created in the "Libraries" folder (which has to be created too, if not yet present) of the working copy of the project in which the library is to be developed or changed under version control. The name of the user library is the base name of the library working copy.

NOTE
  1. Create a new project or open an existing project that you want to use with version control

    A user library can only be put under version control inside a version-controlled project. Control FPWIN Pro7 expects the library working copy as a folder in the "Libraries" folder of the project working copy.

  2. Activate the checkbox Activate version control for this project under Extras > Options > Version control options

    The project is saved and the working copy folder "ProjectName.vcf" is created in the same folder where your project is stored.

    If you want to put a library under version control, install or create it, open it with write access (password needed!), and select the checkbox Activate version control for this user library (only possible if project is under version control) from the user library's property dialog.

  3. Close Control FPWIN Pro7

Create a project or user library repository

  1. Create a new folder for the project or user library repository

    A server drive is strongly recommended if more than one person works on this project. The user library can be managed within an own repository but can also be part of a project repository. If only the user library should be developed under version control and not the project itself, the project repository does not need to be created.

  2. Select the new folder
  3. Select TortoiseSVN > Create repository here from the context menu to create the project repository
  4. Select Create folder structure from the next query Repository created to create the folder structure of the repository
  5. Select Start repository browser from the same query Repository created to see the content and the URL of the repository
  6. Select OK from the same query Repository created
    The browser window is closed and an empty repository has been created.

Now, populate the repository with the contents of your working copy

  1. In the file explorer, select the desired folder of the project or the user library to be put under version control:
    • Project working copy folder "ProjectName.vcf"
    • Library working copy folder "UserLibraryName.vcf" in the "Libraries" folder of the project working copy.
  2. Select TortoiseSVN > Import... from the context menu
  3. In the import dialog, set the URL of the repository to "<path of new repository>/trunk", e.g. C:\Users\Documents\Panasonic\FPWIN Pro\SVNRepo\trunk and confirm with OK

    A comment message is optional.

    The import is finished and the import dialog is closed. Press <F5> to update the repository browser so you can see whether the folders and files have been imported successfully.
  4. In the file explorer, delete the complete content of the working copy (but not the root folder "ProjectName.vcf"/"LibraryName.vcf")
  5. Right-click on the empty root folder "ProjectName.vcf"/"LibraryName.vcf" and select SVN Checkout... from the context menu to open the Checkout dialog
  6. Set the URL of the repository to "<path of new repository>/trunk", e.g. C:\Users\Documents\Panasonic\FPWIN Pro\SVNRepo\trunk, set the checkout folder to the same (complete) path as the working copy folder and leave the other settings as they are. Confirm with OK

    The Checkout dialog is closed. Your working copy is populated with the current folders and files from the project or library repository and is connected to it.

Modified on: 2023-02-24Feedback on this pagePanasonic hotline