Get Latest outside solution

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

Moderator: SourceGear

Post Reply
RobW
Posts: 5
Joined: Thu Feb 10, 2011 12:56 pm

Get Latest outside solution

Post by RobW » Thu Feb 10, 2011 1:04 pm

Hello, I'm using the Enhanced IDE Client version 5.1.1.19215. We recently upgraded and I've noticed the following issue:

We have one repository
$
SolutionFolder
Project1
Project2
Project3

Project1 & 2 are in the same solution (VS2010) and Project3 is in its own solution (VS2008). When I do a Get latest on the solution in the SolutionFolder within VS2010 it does a Get Latest on the repository rather than just the files in the solution. The effect is that Project3 is updated when I'm not expecting it. This can be bad if I have edits I've made in VS2008 that get overwritten by a Get Latest from VS2010. Is there a way to limit the Get Latest to just the current solution loaded in the IDE?

Thanks,
Rob

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

Re: Get Latest outside solution

Post by lbauer » Fri Feb 11, 2011 8:45 am

Do you have two solution files in the Solution folder?

Is there any reference to Project 3 in your VS 2010 Solution file?
Linda Bauer
SourceGear
Technical Support Manager

RobW
Posts: 5
Joined: Thu Feb 10, 2011 12:56 pm

Re: Get Latest outside solution

Post by RobW » Fri Feb 11, 2011 8:52 am

No, the vs2010 solution is in SolutionFolder and the VS2008 solution is in the Project3 Folder. There is no reference to Project 3 in the VS2010 solution file as it is a SSRS project (invalid type for vs2010 hence the VS2008). I think my indenting got lost, but Projects 1/2/3 are all subfolders of the Solution Folder.

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

Re: Get Latest outside solution

Post by lbauer » Fri Feb 11, 2011 4:31 pm

I wasn't able to reproduce this, but I probably wasn't able to set things up exactly as you have them.

Do other recursive operations affect Project 3 as well -- for instance when you check out the VS 2010 project does the VS 2008 project get checked out?

While we are sorting things out, you can prevent overwrites of your files by setting Attempt Automatic Merge as the GET option for modified working copy. This setting is in Visual Studio under Tools->Options->Source Control->Vault Options->Advanced Options-> Local Files->Modified Working Copy.
Linda Bauer
SourceGear
Technical Support Manager

RobW
Posts: 5
Joined: Thu Feb 10, 2011 12:56 pm

Re: Get Latest outside solution

Post by RobW » Mon Feb 14, 2011 7:45 am

A recursive checkout and recursive undo checkout in the VS2010 solution does not affect the VS2008 solution. However, a recursive Checkin (and Get Latest) does. When doing a recursive checkin on the VS2010 solution the VS2008 files show up in the Tree tab of the Check In dialog under a folder named:

Changes in working folder but not in solution

I have this VS2010/VS2008 combination at least two different repositories and both experience the same problem.

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

Re: Get Latest outside solution

Post by lbauer » Mon Feb 14, 2011 10:55 am

Would it be possible to get a copy of your projects so that we can reproduce the problem here?

Email sourcegear.com, Attn: Linda. Please include a link to this forum post.

Another option would be to do a remote assist session where I can take a closer look at how your project is set up.
Linda Bauer
SourceGear
Technical Support Manager

RobW
Posts: 5
Joined: Thu Feb 10, 2011 12:56 pm

Re: Get Latest outside solution

Post by RobW » Mon Feb 14, 2011 1:42 pm

I set up a test project, and found that if the working folder is set at $, I don't have the problem. However, if I set the working folder at $/SolutionFolder, then the Vault Pending Changes window in the VS2010 solution starts picking up checkouts from $/SolutionFolder/Project3 (which is the VS2008 solution). I can email the test solution, but I'm not sure of the full email address to which you want it set.

RobW
Posts: 5
Joined: Thu Feb 10, 2011 12:56 pm

Re: Get Latest outside solution

Post by RobW » Mon Feb 14, 2011 1:53 pm

Forget the last part about the working folder fixing it--what actually happened at first was that the VS2010 solution hadn't refreshed checkout status yet. It exhibits the same behavior I originally described regardless of the level of the working folder. Attached is the zipped project
Attachments
SourceVaultTest.zip
Attn Linda
(33.67 KiB) Downloaded 294 times

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

Re: Get Latest outside solution

Post by lbauer » Mon Feb 14, 2011 3:46 pm

I was able to reproduce some of this -- a get latest in VS 2010 didn't overwrite modified files in VS 2008. However, the VS 2008 files appeared in the VS 2010 pending change set, and a checkin in VS 2010 checked in the changes from VS 2008.

I'm thinking the solution under the solution is not being handled well, and we're scanning all the folders under the VS 2010 solution root , even if they belong to a different solution.

Is there a reason your projects are set up this way? Putting the VS 2008 solution and files into a directory that is not a child of the VS 2010 solution would keep the VS 2010 actions from overwriting files.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply