Getting the Latest Version of Files in Source Control
When another user has edited a file or added a new file to source control, you can use LabVIEW to copy the latest version of the file from source control to the local directory.
Complete the following steps to get the latest version of a file from source control.
If you are in a LabVIEW project, select the folder or files for which you want to retrieve the latest version. If you are working on an individual VI outside a project, open the VI.
Select Tools»Source Control»Get Latest Version. A dialog box appears to remind you that the latest versions of the files will overwrite the current files on the computer. Click the Yes button to continue the operation and display the Source Control Operations dialog box.
The Files tree contains the names and paths of all files for which you want to retrieve the latest version from source control. Remove the checkmark from the checkbox next to the name of any file for which you do not want to retrieve the latest version.
Click the OK button. If the file exists on the computer, the latest version in source control overwrites the local version and any changes that you made to the file are lost.
If you selected a VI for which you want to retrieve the latest version and the VI was open during the operation, LabVIEW prompts you to reload the VI from the disk. If you reload the VI, any unsaved changes you made are lost.
You can verify that a file is the latest version if you view the source control properties. Select Tools»Source Control»Properties from the menu in the front panel or block diagram window of a VI to display the source control properties for a file.
Retrieving Missing or Out-of-Date Files in Source Control
You also can retrieve the latest version of missing or out-of-date files in a LabVIEW project. LabVIEW retrieves the latest version of any missing or out-of-date files from source control and copies the files to the local directory.
Complete the following steps to locate and retrieve missing or out-of-date files in a project:
Right-click the project root and select Get Latest Version of All Files from the shortcut menu. If there are missing items, the Missing File Information dialog box appears and lists missing files that LabVIEW cannot retrieve, such as dependencies or files not in source control.
To retrieve any remaining files, click Continue in the Missing File Information dialog box to display the Get Latest Version dialog box, which is a modified version of the Source Control Operations dialog box.
Select the files you want to retrieve. By default, LabVIEW selects all the files.
Click the OK button. LabVIEW retrieves the selected files and copies them to your local directory.