How do I rename a directory right?

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

Moderator: SourceGear

Post Reply
rstrahl
Posts: 16
Joined: Sun Feb 22, 2004 4:41 pm
Location: Paia, Hawaii
Contact:

How do I rename a directory right?

Post by rstrahl » Thu Apr 22, 2004 4:51 am

I've been at this for over an hour now and I have not been able to get a directory under source control renamed right.

Here's the problem. I renamed the folder in Vault and locally pointed it at a new working directory. Inside of the Vault client it all looks good.

However inside of VS I

1. Don't see the new folder
2. Can't add it
3. Keeps adding the OLD folder to my project with invalidly marked file refs

So, the question is how do I get VS to see this folder that is part of the project.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Thu Apr 22, 2004 7:16 am

Visual Studio doesn't handle renamed files very well.

Take a look at http://support.sourcegear.com/viewtopic.php?t=297 and see if that helps any.

rstrahl
Posts: 16
Joined: Sun Feb 22, 2004 4:41 pm
Location: Paia, Hawaii
Contact:

Post by rstrahl » Thu Apr 22, 2004 2:30 pm

Well I managed to get the changes to show just fine in Vault, but my question is how do I now get VS to recognize this?

I suspect I see the answer in: Delete the old folder and files, then readd through VS.Net, right?

Isn't there an easier way somehow?

The same sort of thing seems to be happening if I want to move files from one folder to another.

+++ Rick ---

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Apr 22, 2004 2:42 pm

did the steps from the kb article, http://support.microsoft.com/default.as ... -us;305516, help?
adapted from kb article 305516 wrote:
  1. Ensure that everyone has the file you want to rename checked in.
  2. Rename the item locally, and make all the local changes to accommodate the renaming.
  3. Just before you check the item in, rename the file in the native Windows Vault Client.
  4. Now that the names match, check the file into the Vault repository.
  5. Go to a different computer and perform a Get Latest Version to make sure that all of your changes worked as expected.
the kb article starts with the local vs.net's project first, and modifies the file / folder names within the repository second.
Jeff Clausius
SourceGear

Post Reply