11-25-2019 09:24 PM
I have installed TortoiseSVN for software version control. I have checked my project file into the SCC directory, but don't understand how to check them out. Do I need to check out every file in the project?
Thanks for the help.
Solved! Go to Solution.
11-26-2019 08:21 AM
@metzler wrote:
I have installed TortoiseSVN for software version control. I have checked my project file into the SCC directory, but don't understand how to check them out. Do I need to check out every file in the project?
If you have a repo, you won't be checking in\out files. You'd add them, commit them, or revert them.
If you made a repo, copy the files in the (checked out) folder. If you created the repo from the folder, the repo is already there, and you won't need to check out. If someone else made the repo, check out the repo to a folder.
Once the files are added to the folder (not the repo!), you need to add them to the repo. Either do an add action, or simply commit the entire folder (right click it and 'commit') and then add all the files. Files that have not been added will not be marked by default, so click the 'all' tag to add and commit in one action.
11-26-2019 09:47 AM
wiebe@CARYA wrote:
@metzler wrote:
I have installed TortoiseSVN for software version control. I have checked my project file into the SCC directory, but don't understand how to check them out. Do I need to check out every file in the project?
If you have a repo, you won't be checking in\out files. You'd add them, commit them, or revert them.
If you made a repo, copy the files in the (checked out) folder. If you created the repo from the folder, the repo is already there, and you won't need to check out. If someone else made the repo, check out the repo to a folder.
Once the files are added to the folder (not the repo!), you need to add them to the repo. Either do an add action, or simply commit the entire folder (right click it and 'commit') and then add all the files. Files that have not been added will not be marked by default, so click the 'all' tag to add and commit in one action.
I would recommend that you do a few other things when using source code control. First, set "Separate compiled code from source" as you default foe LabVIEW as well as any projects you create. If you don't do this you will get lots of churn in your repository simply because a VI was recompiled due to a subVI or typedef being modified. Also, I will always ignore the .alias and .lvpls files. Those are auto-generated by LabVIEW and are constantly changing. There is no need for these to be under source code control.
11-26-2019 09:48 AM
If you are several people working on the same code, you can check out files to flag them as 'occupied'. In Explorer (or repo explorer) you just r-click the files or a folder and Check out.
/Y
11-26-2019 11:03 AM
@Yamaeda wrote:
If you are several people working on the same code, you can check out files to flag them as 'occupied'. In Explorer (or repo explorer) you just r-click the files or a folder and Check out.
/Y
I don't see that when I check files out. I think you can manually tell TSVN to lock files and folders, and I think you can also change the checkout behavior in the settings, but I believe the default settings are not to mark files as "in use".
11-26-2019 11:36 AM
You should "check out" this great tutorial from Delacor:
11-26-2019 01:53 PM
@Gregory wrote:
You should "check out" this great tutorial from Delacor:
Seems that you're very "committed" to this topic.
11-26-2019 03:10 PM
Yes 🙂 Though we may never resolve our conflicts and agree on which tool is best, I think we can all agree that using some version control tool is better than using nothing!
11-27-2019 03:27 AM
@Gregory wrote:
Yes 🙂 Though we may never resolve our conflicts and agree on which tool is best, I think we can all agree that using some version control tool is better than using nothing!
The tools seems to be growing towards each other.
I can (and sometimes do) use TSVN to commit to GIT, and IIRC tools like sourcetree let you use any repo.
11-27-2019 06:22 AM
I am the lone programmer, using one computer.
I created a repository using the folder that the files were created in.
It seems that I cannot check them out, so do I just change the files in the repository or make a working copy of the files in another folder, change those, and then add and commit them to the repo?
If so, do I then delete the working copy?