Search
Sunday, December 09, 2018 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  

Does your Windows Explorer go for a ride when you try to do something? Are you using SVN?

May 7

Written by:
Thursday, May 07, 2009 7:53 PM  RssIcon

When you try to rename a directory or do an F5/refresh and find your Windows Explorer goes off on a ride for ten minutes unexplicably?  Are you using SVN/TortoiseSVN?  If you said yes to both, I have a solution, please read on!

This week I got tired of having my Windows Explorer go for a ride every time I went to create a new directory and then rename it.  Windows Explorer would just spin'n'spin'n'spin.......  You get the picture.  Well, last night I found out what was going wrong!  Turns out it's TortoiseSVN Cache that's going for a ride.  That's the Windows Explorer plugin to find out what files/directories it should put the icon overlay on and what information it should be displaying (ignored, updated, checked in, etc).

There are two solutions, one reactive and one proactive.

Reactive

You can create a batch/cmd file in your dev directory that you can run everytime you think Windows Explorer has lost touch with reality (kind of like Linux, sorry SB LOL).  Put these lines into a batch file and run.  Simple eh?

@echo off
cls
taskkill /f /im TSVNCache.exe
start TSVNCache.exe
pause

Nothing complicated here, first the echoing of commands to the console is turned off, clear screen, taskkill is a Windows thing and in this case forces the process named TSVNCache.exe to be killed.  then it restarts it and the last command stops the command window from closing for a second so you can decide if it worked or not.  The second last line (restarting) is optional cause the SVN will restart it anyways the next time you goto do anything with it anyways (like update, or commit).

Proactive

Setup TortoiseSVN to disregard any directories you aren't using as source code repositories AND explicitly setup TortoiseSVN which directories you ARE using as dev/code.  You do that by going to Icon Overlays (hey, don't shoot the messanger!).

Icon Overlays and settings to include/exclude directories

By specifying all paths to exclude and include explicitly, you should help TortoiseSVN to not get in your way when you're playing with Windows Explorer in other directories where it has no business. 

Now it's time to go grab a coffee and get coding!

Tags:
Categories:
Location: Blogs Parent Separator TechTidBits

1 comment(s) so far...


Re: Does your Windows Explorer go for a ride when you try to do something? Are you using SVN?

Picked up by Jason Haley, Interesting Feeds: http://jasonhaley.com/blog/post/2009/05/08/Interesting-Finds-May-8-2009.aspx

By phenry on   Friday, May 08, 2009 12:48 PM

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Add Comment   Cancel 
     
  
Copyright 1999-2012 by PCHenry.com   Terms Of Use  Privacy Statement