This is probably something that has got a simple solution, but I'm probably not good at all in using Tortoise SVN.
I have this working direcetory that I checked out some time ago:
/folder
file1
file2
/subfolder1
/subfolder2
Now all I want to do is to SVN UPDATE my working directory only for the files in /folder
, but NOT its subfolders. How do I do this?
Be aware that on the SVN server repository, /folder
now contains new files file3
, file4
that I want to see in the working directory after the SVN UPDATE.
EDIT since maybe it's not clear: subfolders MUST not be touched by SVN during SVN UPDATE, I don't want it to touch them at all. I tried to use Greg answer but it does not work and WARNING: subfolder1 and subfolder2 will get DELETED from your working copy during the update.
Thanks.
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.
Subversion is pretty smart about updating and never just overwrites files that have local changes with copies from the repository. The most important thing to take away from this section is: If you collaborate with others on one repository, remember to update your working copy regularly.
Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.
For example, if a file is unchanged and out of date, that means your working copy has an old version of that file and a newer version is available on the code repository. In this case, you must run the svn update command to fetch/pull the latest version of the file from the repository.
I normally perform partial updates from the "Check for modifications" dialogue. I launch it, I click on "Check repository" to get available updates and then right click on the exact items I want to fetch.
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