index > Team Foundation Server - General > How can shelving support working from Desktop and Laptop?

How can shelving support working from Desktop and Laptop?


Here's the scenario, I do a bunch of work on my desktop during the day, resulting in numerous files being checked-out on my desktop.  At the end of the day I'm not ready to check-in but I would like to continue my work from my laptop in the evening.  My understanding was that I would shelve my pending changes from my desktop computer, then Unshelve from the laptop.

I tried this and got a bunch of errors during unshelve: "The item $/.... is locked for check-out by WESTEEL0\smithd in workspace SMITHD"  the workspace SMITHD is my desktop computer workspace.  Before doing the unshelve the laptop has no files checked out and no pending changes (I just did an Open From Source Control... to get the latest copy of the source, so I know it's up to date).

Why am I getting this error, and whats the proper way to support this scenario?
Optikal

*bump*

 

Anybody know how this is supposed to work?  I can't even share files with other people, which I thought was one of the main reasons behind shelving.  If somebody else shelves their code, it won't let me unshelve it because it says they have it checked out still...

Optikal

It sounds like you're working in exclusive checkout mode?

If this is the case, you'll need to undo the checkout on your desktop machine before you can unshelve on your laptop (which will check out this files on your laptop).

The easiest way to do this is when you create your shelveset, clear the check box that says "preserve pending changes locally" which will undo your checkout after the shelveset is created.




More from me at http://blogs.msdn.com/johnlawr
John Lawrence MSFT
 John Lawrence MSFT wrote:

It sounds like you're working in exclusive checkout mode?

If this is the case, you'll need to undo the checkout on your desktop machine before you can unshelve on your laptop (which will check out this files on your laptop).

The easiest way to do this is when you create your shelveset, clear the check box that says "preserve pending changes locally" which will undo your checkout after the shelveset is created.

What about the scenario where I want to look at another developers code that is in-progress?  Lets say for a code review.  I don't want them to undo their check-out, because they are still working on it, I just want to grab a copy of what they have so far.  Is this supported?

Optikal

In order for you to be able to unshelve your pending changes into your laptop's workspace, you'll either have to remove the exclusive lock setting from the Team Project, or you'll need to remove the pending changes from your workspace, as John described.

Only one workspace can lock an item at any given time.  When the exclusive checkout mode is enabled for a Team Project, every pending change must take a checkout lock.  If you have the files locked in your desktop's workspace, you can't unshelve them in your laptop's workspace (otherwise, we'd break the exclusive checkout guarantee).  For this reason, shelving and having the exlusive lock setting enabled do not mix well.

Buck




http://blogs.msdn.com/buckh
Buck Hodges

I have opened a MS Connect issue at https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=212136

To get this addressed, please go and vote...

invalid display name 3
reply 6

You can use google to search for other answers

 

More Articles

No code coverage in Team Build Beta 3
about workspace
Rollback a changeset?
h resolve /auto does not work, will it be working in the release?
Access Denied to Start Build
Event Viewer Strange Event
New Group remains invisible by WIT system
Source control and Sharepoint Integration
Synchronizing Predecessor Info between VSTS and Project
How permission for groups work?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Work Item publishing errors
Beta2 woes.
Issues List on Project Portal Problem
I can't believe they charge for this pro…
Branch with Team Build?
automatic Team build
Add classification field to Bug work ite…
Builds failing with .NET Runtime error
Thanks Rob Caron!
What is a typical build process?
SharePoint Portal... Web Parts Broken?
Cannot access project portal from remote…
Continuous project checkout
Warehouse refresh fails with "Reque…
TFS API: How can I get project portal URL?

Hot Articles

Team Foundation server sends multiple em…
Scheduled Download of Source Files ..
SharePoint Portal... Web Parts Broken?
update several places in SCC using TeamB…
Can the portal be integrated with ShareP…
Changing Folder Mapping in an Existing W…
Users can edit changeset comments using …
How to move workspace data?
How to add task in Team Project Portal a…
Team Foundation Server setup: where to f…
Extensibility Kit update
Is there a Check-In Policy for making su…
Loads of Event ID 0 when performing a da…
File in use .mpp is locked for editing
Upgrading from RC to RTM

Recommend Articles

RC SDK?
TFS Integration with MS Excel: Descripti…
Editing Source File without Checking Out
Accessing Team Foundation Server Over th…
Expand project properties...
Assigned To field is deleted
Source control "get" troubles
Error: The Team System cube either does …
Hot spare app tier
Teambuild
How to set up an auto build with Team Bu…
New Group remains invisible by WIT system
Confusion when the Merge target solution…
http://localhost/Reports works fine but …
Team Build Install Issue