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.
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.
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.
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 ...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With