Removing irrelevant directories with SVN

I have a directory that came out of a part of the torso that I checked, which is not relevant to my interests. How can I use Tortoise SVN to remove this folder from my system and stop SVN from trying to give me updates without removing it from the repository?

+1


a source to share


4 answers


I haven't used it myself yet, but take a look at rare directories:

http://svnbook.red-bean.com/en/1.5/svn.advanced.sparsedirs.html



Subversion 1.5 introduces a feature called sparse directories (or shallow checks) that allows you to easily check out a working copy or part of a working copy — more finely than full recursion, with the ability to bring in previously ignored files and subdirectories at a later time.

...

You might think at this point, "So what? When will I use this?" One scenario where this function finds a utility is tied to a specific layout of the repository, especially where you have many related or dependent projects or software modules that live like siblings in the same repository location (trunk / project1, trunk / project2, trunk / project3, etc.).In such scenarios, there may be a case where you personally only care about a few of these projects - perhaps a core project and a few other modules that it depends on. You can check out individual working copies of all of these things, but these working copies do not overlap and as a result can be cumbersome to perform operations on several or all of them at the same time. An alternative is to use a sparse directory function, creating a single working copy containing only the modules you care about.You will start by checking for empty depth from the common parent project directory, and then update with infinite depth only the items you want, as we demonstrated in the previous example. Think of it as how to use the system to copy copies of citizens.

+4


a source


As far as I know, it is not possible to selectively ignore records when checking. When you view the SVN url you get everything underneath it.

So, if your project has the following structure:



\trunk\Dir1
\trunk\Dir2
\trunk\Dir3

      

You can either get all the \ trunk or individually check each Dir1, Dir2, or Dir3 against its own working directories. Trying to check the chest but excluding Dir2 for example is not supported.

0


a source


If you look at the trunk, you get everything. If this is your repo, organize it according to projects / interests. What's the point in maintaining all of this and versioning if you can't figure out what year it is?

0


a source


You have several options:

  • Just delete the folder and never update the root directory, just the subdirectories next to the deleted folder.

  • Set svn: ignore property on root to ignore unneeded folder and never pass root.

  • You can configure tortoiseSvn to check for specific levels in the root directory. If your problem is with huge files in the uunneeded directory, you can check root with children only (one level) and then use the switch command on all but unneeded directories to check all levels below them to save space with unnecessary dir. You will still see an empty unneeded directory.

0


a source







All Articles