How Does Shelving Work

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

Moderator: SourceGear

Post Reply
btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

How Does Shelving Work

Post by btd » Mon May 16, 2011 6:06 am

I have branched my base code and now have one that supports production and the branch that will be the next release. In the branch, I am ready to go, but users are still testing and I need to continue developing until they are done. Rather thaq create another branch, I was thinking about shelving code until the users are done.

But I am not sure how shelving works.

For example, if I shelve C# code. What happens behind the scenes? Does it "check in" the code and create a new version. If so, then shelving is not what I want. I want to be able to protect (Check in or shelve) my code changes AND not make these changes part of th build.

Thoughts?

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

Re: How Does Shelving Work

Post by Beth » Mon May 16, 2011 7:52 am

The Shelve feature does not check in code nor create a new version in Vault. There is a separate area in the database where the shelve set is kept until the user deletes it.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: How Does Shelving Work

Post by btd » Mon May 16, 2011 8:17 am

Then is there a "merge" shelved code into the repository?

Also, why don't I see the option to shelve in Visual Studio 2008?

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

Re: How Does Shelving Work

Post by Beth » Mon May 16, 2011 8:24 am

To get the Shelve Set into your Vault repository, you would unshelve your code and check it in.

If you shelve your code, but keep all your changes on disk, then you don't have to perform the unshelve.

Are you using the Vault Classic Client or the Vault Enhanced Client with VS 2008? It should be available with the Vault Enhanced Client.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: How Does Shelving Work

Post by btd » Mon May 16, 2011 8:34 am

I don't know. How do I check to see if I am using Vault Client or Vault Enhanced client?

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

Re: How Does Shelving Work

Post by Beth » Mon May 16, 2011 8:54 am

When your project is open, go to Tools - Options - Source Control - Plugin and check what is set.

Also, you should have icons (locks or green circles with white checks) next to your files in the VS Solution Explorer. If you don't have icons next to the files, then that project isn't bound to Vault.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: How Does Shelving Work

Post by btd » Wed May 18, 2011 1:53 pm

Mine is set as Vault Standard Client.
What do I have to do to get it to use the Enhanced Client?

Thanks

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

Re: How Does Shelving Work

Post by Beth » Wed May 18, 2011 2:15 pm

Code: Select all

Mine is set as Vault Standard Client.
You mean Classic Client, correct? Vault Standard is a release of Vault, and Vault Classic and Vault Enhanced clients are the plugins to Visual Studio.

Vault Classic Client does not have the ability to access shelving.

You can use the instructions posted here, http://support.sourcegear.com/viewtopic ... highlight=, to switch from the Vault Classic Client to the Vault Enhanced Client. One thing to note is that all users have to use the same client on the same solutions and projects.

Before switching to the Enhanced Client, you may wish to become familiar with some of the differences you will see.
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: How Does Shelving Work

Post by btd » Mon May 23, 2011 7:10 am

OK That all worked. Now I would like to use VIsual Studio 2010 but I did not an option for Vault Enhanced Client that I saw in VS.net 2008.

What do I have to do to use Vault Enhanced Client in VS2010.

Thanks

BTD

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

Re: How Does Shelving Work

Post by Beth » Mon May 23, 2011 9:58 am

Was Vault installed before or after VS 2010?
Beth Kieler
SourceGear Technical Support

btd
Posts: 324
Joined: Fri May 13, 2005 1:50 pm

Re: How Does Shelving Work

Post by btd » Mon May 23, 2011 1:19 pm

BEFORE

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

Re: How Does Shelving Work

Post by Beth » Mon May 23, 2011 3:14 pm

Vault needs to be installed after VS 2010. You can try either a repair install or perform an uninstall and reinstall of the Vault client
Beth Kieler
SourceGear Technical Support

Post Reply