Problems with rename/move folders

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Guest

Problems with rename/move folders

Post by Guest » Wed Feb 16, 2005 1:32 pm

I'm using Vault and am having problems renaming files and moving folders. I am using Vault in CVS mode which means I am using the independent client and not the integrated Visual Studio file.

The problem is that it seems the only way to rename files is from the independent client -- but if I do this then the .sln and .csproj files will not be properly updated to reflect this change.

Additionally, even if I modify the .sln and .csproj files by hand to complete this change, it seems that Vault does not recognize .sln and .csproj files as text files; it thinks they're binary files and not mergable.

So my question is this: how can I rename files and move directories in Vault?

Guest

Post by Guest » Wed Feb 16, 2005 1:33 pm

Just to add, I'm using Vault 3.0.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Feb 16, 2005 2:15 pm

If you want to rename files and move directories and still be "kosher" with VS.NET, you might want to review this KB article:

http://support.sourcegear.com/viewtopic.php?t=297

Also, check in the Vault Admin Tool under Repository options to see if .sln and .csproj files are listed under Mergeable file types.
Linda Bauer
SourceGear
Technical Support Manager

Guest

Post by Guest » Wed Feb 16, 2005 2:31 pm

If I want the Vault repository to recognize a file rename, I must use the Vault client to perform that rename. Since that's what I need to happen, I use the Vault client, OK.

Given that has happened, what are the exact steps I need to do to get Visual Studio to recognize this rename? Do I have to edit the .sln or .csproj files by hand?

Assume that I have set .sln and .csproj files to be mergable within the Vault repository as you suggested.

Thanks for your help!

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Fri Feb 18, 2005 4:51 pm

Anonymous wrote: Given that has happened, what are the exact steps I need to do to get Visual Studio to recognize this rename? Do I have to edit the .sln or .csproj files by hand?
Here's something I posted a while back regarding renames:
Maybe what is needed is a list of instructions on how to do things that involve Visual Studio, such as renaming a file. I have learned that to rename a file I have an easier time if I do the following: 1) Check-in file to be renamed, 2) rename file within VS (select the file press F2), 3) exit VS (or close the project/solution), 4) Vault still has the old name, so rename file within the Vault Client (this will push the revision number up), 5) do a "Get latest version" from the Vault client (even through there are no content changes), and 6) re-open the project/ solution on VS.
gabriel magana-gonzalez

Post Reply