Disconnected mode / laptop issues

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

Moderator: SourceGear

Post Reply
gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Disconnected mode / laptop issues

Post by gmagana » Fri Sep 10, 2004 1:46 pm

Hello all,

I was wondering if there is a simple way of using a latop with Vault (or rather, viceversa!)... For projects that I check in/out through the vault client, simply doing a "get latest version" through the Vault client is enough, since I can just merge any changes back in whn I get back to the office.

But for project which I check in/out through the development environment (ie, VS 2003 projects), this creates a problem since the files were not formally checked out through the development environment, then any changes in the project will end up loosing the Dev. Env.'s version control metadata.

I came across this thread: http://support.sourcegear.com/viewtopic ... ght=laptop Is the information in that thread still valid?

Or perhaps I am missing something, but sometimes I take long trips and must take all my source on my laptop, just in case. It would seem that I have to check out all my projects through their respective devel envionments if I want to have a trouble-free trip, and the undo the applicable checkouts when I come back into the office. Is this true, or is there another way that I am missing?

Thanks.
gabriel magana-gonzalez

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

Post by dan » Fri Sep 10, 2004 3:34 pm

Are you using IDE integration the whole time or the Vault standalone GUI client?

Either should work. You can't check out files from Vault without a network connection but:

1. Visual Studio will simulate check outs for you when it works in disconnected mode, and then when you reconnect when you have a network again, it will check out the files you've changed for real, and allow you to check them back in. Of course, if a file needs merged (because someone else checked in a new version while you were gone), you will have to resolve the merge, but the process does work.

2. If you use the GUI client, you can turn off the option to Require Checkouts before Checkin while you are disconnected. When you get back into the office, any files you have edited will be in the pending change set, and you can check them in (again, assuming there are no merge conflicts).

Hope this helps,

Guest

Post by Guest » Fri Sep 10, 2004 3:58 pm

Thanks for the info. My real problem is with GUI-managed check ins and outs. Here is what I do now:

I do a "Get Current Version" (recursive) and save everything (not checked out) to the hard disk.

For Vault-Client projects I simply change the file locally and merge when I get back into the office.

For GUI-managed projects I do the same but have a problem because, since I did not do a formal checkout when /i edited the files, I have lost some metadata from the projects, which /i have yet to figure oit how to fix.

How can I have my GUI do an offline/disconnected checkout if I dont; have access to the Vault server at checkout time?

gmagana
Posts: 145
Joined: Wed Feb 18, 2004 10:51 am
Location: Santa Ana, CA, USA

Post by gmagana » Fri Sep 10, 2004 4:00 pm

Sorry that was me up there, forgot to check in.
gabriel magana-gonzalez

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

Post by dan » Fri Sep 10, 2004 9:38 pm

By "GUI managed projects", do you mean source controlled project from within the Visual Studio IDE?

If so, Visual Studio has an "off-line" mode that is supposed to simulate checkouts for you and then resolve everything when you are back on line. Is your VS not configured to do this?

WesDavis
Posts: 1
Joined: Mon Apr 03, 2006 9:25 am
Location: General Dynamics

Post by WesDavis » Mon Apr 03, 2006 9:34 am

dan wrote:If so, Visual Studio has an "off-line" mode that is supposed to simulate checkouts for you and then resolve everything when you are back on line.
How to get back on-line after going off-line? :?:
V3.1.8 (3771)
VS 2003+Win Server 2003

1. Working on-line, files checked out. :D
2. Shutdown for weekend, reboot/restart but server is down, accept option to work offline (as files were previously checked out). :!:

3. Now I can't figure out how to reconnect inside VS 2003. :(
4. The various Source Control options, under File menu in VS 2003 do not help, often warning that a project already exists in the working folder. Duh. :x

NOTE: Vault GUI tool shows files properly checked out as expected (i.e., as if server was always available).

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

Post by dan » Mon Apr 03, 2006 9:44 am

Use Source Control->Change Source Control, where there is a button to connect.

Post Reply