Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking in Shelvesets

Tags:

tfs

checkin

I'm a developer and I've made some changes to a solution, which I have saved off to a shelveset. Another developer unshelves my changes and builds the solution on a server. Is there a way for the second developer to check in my shelveset? I know he/she can check in the individual files comprising the shelveset. However, I was thinking of a "checkin" command that took the name of a shelveset as a parameter, or if there was another way to check in those changes as a unit, with the shelveset name.

like image 881
cjs Avatar asked Jul 13 '10 16:07

cjs


People also ask

What are Shelvesets?

Shelvesets are created by the shelve command. Shelvesets are stored on the Team Foundation Server and can be retrieved into a workspace by any user who has sufficient permissions using the Unshelve Command. Unlike a changeset, a shelveset is a non-versioned entity.

How do you take Shelveset?

If you want to get your shelveset back or get other people's shelved changes. Go to File -> Source Control -> Unshelve Pending Changes…. You can then find shelvesets by username. Clicking Details on a shelvset will show you information about each file in that shelveset.

How do you shelve changes in VS code?

To shelve your current pending changes, right click the project, Shelve, add a shelve name. This will save (or Shelve) the changes to the server (no-one will see them) You then do Undo Pending Changes to revert your code back to the last check-in point. You can then do what you need to do with the reverted code ...


1 Answers

The other developer can open a Visual Studio Command Prompt and use the following command:

tf checkin /shelveset:shelvesetname;shelvesetowner

See Checkin Command on MSDN for more details.

like image 73
Grant Holliday Avatar answered Oct 24 '22 14:10

Grant Holliday