Hi,
Is shelving in TFS merely a soft checkin so other team members can see the source code?
i.e. the shelved code will not be compiled right?
Hi,
Is shelving in TFS merely a soft checkin so other team members can see the source code?
i.e. the shelved code will not be compiled right?
Shelving is a way of saving all of the changes on your box without checking in. The changes are persisted on the server. At any later time you or any of your team-mates can "unshelve" them back onto any one of your machines.
It's also great for review purposes. On my team for a check in we shelve up our changes and send out an email with the change description and name of the changeset. People on the team can then view the changeset and give feedback.
FYI: The best way to review a shelveset is with the following command
tfpt review /shelveset:shelvesetName;userName
tfpt is a part of the Team Foundation Power Tools
You're right. Shelving is used to backup and share code. It is not compiled.
That's right. If you create a shelf, other people doing a get latest won't see your code.
It puts your code changes onto the server, which is probably better backed up than your work PC.
It enables you to pick up your changes on another machine, should you feel the urge to work from home.
Others can see your shelves (though I think this may be optional) so they can review your code prior to a check-in.
I come across this all the time, so supplemental information regarding branches:
If you're working with multiple branches, shelvesets are tied to the specific branch in which you created them. So, if you let a changeset rust on the shelf for too long and have to unshelve to a different branch, then you have to do that with the July release of the power tools.
tfpt unshelve /migrate
Shelving has many uses, the main ones are:
Any other uses?
I keep reading about shelving changesets for code reivew, before the code is checked in. How do you create a changeset without checking the code in?
Thanks, Bob