Our department is planning on using the "SVN Checkout" option within Tortoise SVN. In that dialog, we select the "Only this item" option and then we click the "Choose items" button and choose all the relevant files we want to check-out. Let's assume a user will make a mistake, and forgot to check out an important file. What is the easiest way to go back and choose that file (or list of files) from trunk?
Suggested changes to @Chad's answer:
A.) If the parent folder of the folder(s) or file(s) you are checking out DOES NOT EXIST in the working copy, then do the following:
The files will be added to the working copy.
DISCLAIMER: If you do not follow step #3, the working copy of the checked out files will be in a strange location not relative to the rest of the files.
B.) If the parent folder of the folder(s) or file(s) you are checking out DOES EXIST in the working copy, then do the following:
The files will be added to the working copy.
Suggested update to @gbjbaanb's proposed answer:
To include new folders/files to working copy:
NOTE: Repeat step #3 and #4 for all new folders/files being added
DISCLAIMER: Assume you are only adding new folders or files to your working copy/checked out folder.
To exclude folders/files from working copy:
That's the method I used with a very large repository. Only the bits I needed were checked out, when I needed them.
Right click on the checked out folder, then use TortoiseSVN → Update to Revision and select Choose items.... This opens the same dialog that was available in the original checkout and allows you to select or deselect items to include in the checkout.
So we right-click on this folder and select 'SVN Checkout…' From here we'll specify the location of the repository that we want to check our files out from. So something like… If you've forgotten what this URL is then you can go back to the VisualSVN server app and right click to select 'Copy URL to Clipboard'.
To update, select the files and/or directories you want, right click and select TortoiseSVN → Update in the explorer context menu. A window will pop up displaying the progress of the update as it runs. Changes done by others will be merged into your files, keeping any changes you may have done to the same files.
You right-click on the root, select repo-browser, find the relevant bits you want to download to your working copy, right click and select the "update to revision".
To remove items you have downloaded, right click on the item in your working copy, select the same menu (update to revision) and select "exclude" from the depth box.
That's the method I used with a very large repository. Only the bits I needed were checked out, when I needed them.
There are two scenarios when adding missed files and folders to a working copy: The Missing parent folder scenario and the Present parent folder scenario.
Scenario 1: The working copy is Missing the parent folder of the missed folders or files
The files will be added to the working copy.
DISCLAIMER: If you do not follow step #3, the working copy of the checked out files will be in a strange location not relative to the rest of the files.
Scenario 2: The working copy Contains the parent folder of the missed folders or files
The files will be added to the working copy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With