Random reverting of source files.

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

Moderator: SourceGear

Post Reply
psypher
Posts: 9
Joined: Tue Sep 09, 2008 10:27 am

Random reverting of source files.

Post by psypher » Thu Nov 06, 2008 2:36 pm

Here is the process that causes random reverting of source files.

1. Work machine - edit and checkin project files.
2. Travel home.
3. Delete folder from local hard drive which repository is mapped to.
4. GetLatest on the entire tree.
5. Check out an entire project using the integrated Vault component in Flex Builder since my VPN has a tendency to disconnect for no apparent reason.
6. Make changes.
7. Get up early and check in changes using the Vault client application.
8. Go to work.
9. GetLatest version on work computer.
10. Tada! Files reverted.

Now you would assume that the changes that were lost were from something I did at home. This is not the case. It seems to randomly pick a few files that I hadn't changed at home and roll them back to a previous time.

Fortunately, I do get a _sgbak folder with the most recent file data still in place.

My work and home machine are running the latest versions of Flex and Vault. However, my work machine is XP and home computer is Vista.

Do we need to purchase another license for the server since I'm using it on a different computer or is it user-based?

** VERSION **
Client Information
Vault Client Version: 4.1.3.18336
.Net Framework Version: 2.0.50727.3053
Operating System: Microsoft Windows XP Professional
Service Pack: 3.0
OS Version: 5.1.2600
Total Physical Memory: 1.97 GB
Time Zone: (GMT-06:00) Central Time (US & Canada)

Server Information
Vault Server Version: 4.1.2.18185
.Net Framework Version: 2.0.50727.3053
Operating System: Microsoft(R) Windows(R) Server 2003, Standard Edition
Service Pack: 2.0
OS Version: 5.2.3790
Timezone: (GMT-06:00) Central Time (US & Canada)
SQL Version: Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (Intel X86)
Jul 9 2008 14:43:34
Copyright (c) 1988-2008 Microsoft Corporation
Standard Edition on Windows NT 5.2 <X86> (Build 3790: Service Pack 2)

License Information
2 serial number(s):
1 of 2: 10 full users, expiring 10/1/2008
2 of 2: 3 full users, permanent

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Random reverting of source files.

Post by Beth » Fri Nov 07, 2008 2:02 pm

The licenses are user based.

Can you go into your Vault GUI client and verify that the file is getting checked-in from home? After you check in from home, view history. Is the most recent check-in there?
Beth Kieler
SourceGear Technical Support

psypher
Posts: 9
Joined: Tue Sep 09, 2008 10:27 am

Re: Random reverting of source files.

Post by psypher » Mon Nov 10, 2008 10:59 am

When I leave my home, I do a refresh to make sure everything is checked in before actually disconnecting from the VPN. Same with work prior to going home.

Is Vault getting confused because I have the same username and working folders at home and at work?

The last time this occured, it was on 3 files I hadn't modified.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Random reverting of source files.

Post by Beth » Tue Nov 11, 2008 1:27 pm

What username is used, whether it be the same or different shouldn't make a difference here.

I still would like you to perform history queries instead of just relying on the refresh for the moment. That will help narrow this down to the root cause. I'm looking for you to confirm that the check-ins that you perform then show up in history. Then let me know what you are seeing there.

Are you checking in strictly from the Vault GUI client or are you checking in from within Visual Studio?

Can you take a screenshot showing the options you choose when you are performing your Get?

Can you reproduce this behavior with just one file with the Vault GUI client?

Can you see what is sitting in your pending changes? If not, in the GUI, it will be a tab at the bottom, and in VS you need to use the View file menu to select the pending changes window. Open that and watch what happens. After checking in, is the item you checked in still listed there?
Beth Kieler
SourceGear Technical Support

psypher
Posts: 9
Joined: Tue Sep 09, 2008 10:27 am

Re: Random reverting of source files.

Post by psypher » Mon Nov 17, 2008 11:32 am

Ok, this happened on a single file this time. One that was checked out and edited.

***What username is used, whether it be the same or different shouldn't make a difference here.

same username

***I still would like you to perform history queries instead of just relying on the refresh for the moment. That will help narrow this down to the root cause. I'm looking for you to confirm that the check-ins that you perform then show up in history. Then let me know what you are seeing there.

I checked the history and the file did not get checked in. It shows that it is still checked out.

***Are you checking in strictly from the Vault GUI client or are you checking in from within Visual Studio?

This occurs in Flex Builder when I click the Commit All button in the Pending Changes window.

***Can you take a screenshot showing the options you choose when you are performing your Get?

When I do a "get" I only select the Overwrite option.

***Can you reproduce this behavior with just one file with the Vault GUI client?

I haven't been able to recreate it on a single file.

***Can you see what is sitting in your pending changes? If not, in the GUI, it will be a tab at the bottom, and in VS you need to use the View file menu to select the pending changes window. Open that and watch what happens. After checking in, is the item you checked in still listed there?

After I had "Commit All" items, the list in the pending changes window was clear but I hadn't done a refresh to see if it had failed to commit one of the files this morning. There were no errors reported during the check in.

If I do a "Commit Selected" check in on individual items in the pending changes window or the context menu in the hierarchy tree, everything checks in fine. This is fine with just a few items but when I have 20 or 30 files checked out, it becomes somewhat tedious.

So I think it has something to do with the "Commit All" routine.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Random reverting of source files.

Post by Beth » Tue Nov 18, 2008 3:27 pm

Next I need to know if it's just Commit All from in Final Builder or the Commit All in Vault. When you are committing with Final Builder, are you just using our command-line client, or if there something in Final Builder that integrates it with source control?
Beth Kieler
SourceGear Technical Support

Post Reply