There are 3 people in our organization who have had the following problem:
1) Check out multiple files for editing, and make changes in Visual Studio.
2) Check in files from Visual Studio.
3) One or more files in the change set are reverted to the latest version from Vault.
This problem only happens occasionally, and we can retrieve the lost changes from the hidden _sgbak/ directory, but this is a problem which could possibly cause us problems, especially if the case ever happens where we cannot retrieve the changes from _sgbak/.
This seems to be the same problem as discussed in the Gold forum here: http://support.sourcegear.com/viewtopic.php?t=7628.
The bindings are/were valid, new files were added to the repository; and in some cases, some of the files were checked in properly, while others experienced this problem.The things to check are:
1) Are the bindings valid? Check under the Change Source Control in VS to see that everything is bound. Or you can unbind and rebind.
We all have/had Visual Studio set to get the latest version whenever a project is opened.2) Is a Get Latest ever performed? Visual Studio has the option to automatically perform a Get upon opening. Check in VS under Tools - Options - Source Control - Environment. If you can, post a screenshot.
We are unable to reproduce this problem, it only happens on occasion.3) Are there any other files you can check in to see what happens? If so, make a copy of your working directory. Then check the files first to make sure they are exactly as you want them, and then perform a check in. Once that is finished, close out and reopen your project again and see how those files look.
No. Our working folders are all on our local computers, and no one would be using the same working folder.4) Does anyone else have their working folder set to what your working folder is?
All of our projects are web projects.--Does it happen with web projects, or other projects -- or any project?
None of us had changed our working folders between checking out the files and checking them in again.--Do changes tend to get lost when working folders have been changed?
Your help in this matter is appreciated.