Get Latest outside solution
Moderator: SourceGear
Get Latest outside solution
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
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
Re: Get Latest outside solution
Do you have two solution files in the Solution folder?
Is there any reference to Project 3 in your VS 2010 Solution file?
Is there any reference to Project 3 in your VS 2010 Solution file?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Re: Get Latest outside solution
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.
Re: Get Latest outside solution
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.
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
SourceGear
Technical Support Manager
Re: Get Latest outside solution
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.
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.
Re: Get Latest outside solution
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.
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
SourceGear
Technical Support Manager
Re: Get Latest outside solution
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.
Re: Get Latest outside solution
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
Re: Get Latest outside solution
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.
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
SourceGear
Technical Support Manager