dbelca
dbelca

Reputation: 41

How to hide .svn directories in Windows explorer?

I am using TotoiseSVN on Windows Vista which works very well. Only one thing keeps bothering me: Under Vista the explorer expands the .svn subdirs and that is very confusing.

(Yes, I can make my Explorer ignore all hidden files, but that is no possible solution, because I need to see them for other reasons during development)

Thank you!

Upvotes: 1

Views: 5901

Answers (4)

bnn
bnn

Reputation: 11

  1. Open a windows explorer window and search for every thing *.svn
  2. Select All in the results window and make these guys invisible, by right clicking and changing the properties
  3. Change Windows to not show hidden files

    OR

  4. To not view.svn files in the explorer TREE and File System, open up a command prompt, navigate to your repository folder and type "attrib +h *.svn /s" You will still have to make windows make hidden files invisible though.

Upvotes: 1

Kaushal Shrestha
Kaushal Shrestha

Reputation: 41

  1. From command prompt, first make the .svn unhidden
    --> attrib -h .svn /s /d

  2. Then make all the .svn folders system folders + hidden
    --> attrib +h +s .svn /s /d

This way you can still show your hidden files/folders (like I do) but as long as you have "Hide protected operating systems files" checked, the .svn folders won't show up in windows explorer.

Upvotes: 4

PandaWood
PandaWood

Reputation: 8363

One option is to look at using a WindowsExplorer alternative.

For example, I use DirectoryOpus - http://nudel.dopus.com/opus9/

It has an option in Preferences to toggle Show in Folder Tree | Hidden Folders - which I believe is what you're referring to when you say that you still want to see it but not expanded - which I take to mean, not in the left-hand (tree) view.

This screenshot illustrates what I get (and what I think you're after)

In my case, the folder is .git (not .svn), but they are the same for our purposes. They are folders automatically marked as hidden.

(This software does many, many more things - such that I can no longer even use WindowsExplorer).

alt text

Upvotes: 1

gbjbaanb
gbjbaanb

Reputation: 52689

wait until Svn 1.7 which will do away with them in favour of a single file held outside the folder tree.

Otherwise, apart from going golfing with Bill, you'll have to turn the show hidden files option off.

Upvotes: 3

Related Questions