About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Copy, move and delete files using TortoiseSVN NOT Windows Explorer

February 01 2008 8:55AM
Recently, I’ve been helping, or at least trying to help, a few people who are new to version control and SVN who’ve been having trouble. The problems range from folders not sync’ing with the server to files missing or having been deleted among others. Now, it’s not the fault of TortoiseSVN nor are these things specific to TortoiseSVN but I think it’s related to how well it integrates with Windows Explorer that leads to these issues.

If you’re a command line junkie this isn’t going to be of much use so continue right on browsing. But, if you do all your file manipulations, cut, copy, paste move etc. from within Windows Explorer then this is for you.

DO NOT...

  • Copy files using Explorer
  • Move files using Explorer
  • Delete files using Explorer
  • Drag/drop files using Explorer
image
If you have files checked into SVN then you need to use SVN commands to manipulate those files. One overlooked capability of TortoiseSVN is right click copy/move where you can right like folders in Explorer and drag them to a new location which will display this context menu (to the right) allowing you to select the operation of your choice. Whatever you do me sure that you’re using the TortoiseSVN commands and not messing around with files using the standard Explorer copy/move/delete otherwise you’ll be in for a world of hurt.
FacebookDel.icio.usDigg It!

Tags:

Comments (6) -

2/1/2008 12:56:36 PM #

Could you provide some more detail? I have found that Tortoise's Rename command does nothing different than a delete/add which is the same effect I get if I use Windows Explorer and then tick off the files when I commit.
In fact I have found Tortoise's menu option to have two disadvantages:
* It doesn't work if the file has been modified
* As often as not I do my renames inside the DE

Marc

Marc Rohloff

2/1/2008 2:38:23 PM #

Interesting, but hardly unexpected. I would anticipate that once a file is being managed by source control, then source control needs to be used to do whatever is to be done that alters the location or name of the file.

Or, I should say, that makes good sense with move or rename operations, but I am not sure why it would apply to copy, so long as the original remains where source control expects it to be.

Bill Meyer

2/1/2008 5:25:31 PM #

Hi Marc,
  The problem is this:

- I rename my file using Explorer and continue working on it.
- You make changes (using the old filename) and commit them
- I then use SVN Update and suddenly the file I renamed is back, so I delete it and check in the renamed file losing your changes.

At this point, I've just overwritten your changes which is exactly the problem I just fixed and is what prompted this post.

My point here is I believe if you clearly communicate that people need to stick to using SVN commands then they'll likely be much better off than if they unknowingly mess around with Explorer commands AND SVN commands.

Steve Trefethen

2/1/2008 7:13:46 PM #

That's why I hate explorer integration... better a client on its own, although I still have to find a good one for SVN, RapidSVN is one of the slowest projects I've ever seen, and eSVN looks to be almost dead on Windows...

KM

2/1/2008 7:31:05 PM #

KM,
  If you understand what you are doing I, personally, think it's really convenient to have Explorer integration if not, it can certainly be a trap.

Steve Trefethen

7/12/2008 9:47:40 PM #

Since TSVN 1.5 came out there are some minor changes. Here is a nice link to quick videos showing how to use basic TSVN features. Hope it helps you as well.

http://pollvu.blip.tv/">http://pollvu.blip.tv/


hamy

hamy

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading