Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tortoise SVN: how to svn update folder but NOT its subfolders?

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.

like image 504
Marco Demaio Avatar asked Nov 27 '10 16:11

Marco Demaio


People also ask

How do I update TortoiseSVN folder?

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.

Does svn update overwrite local changes?

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.

What is difference between commit and update in svn?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.

How do I get the new changes in svn?

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.


1 Answers

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.

like image 112
Álvaro González Avatar answered Oct 10 '22 09:10

Álvaro González