Shelve in TortoiseSVN?
I don't believe that SVN has this feature built into the server product. I also don't believe anything like this emulated in any clients that I have used, including TortoiseSVN.
To get around this problem, I have resorted to using a DVCS such as Git or Mercurial, to allow me to branch/merge/shelve locally before pushing the content back to SVN. It's arguably a bit of a kludge, but it works really well.
Shelving in SVN is starting to roll out with version 1.10, see Release Notes
If you understand how SVN branches work, emulating Shelve in SVN is a no-brainer:
- Create a branch in the repository (on the server)
- Switch your local copy to it
- Commit your changes to the new branch
- Switch your local copy back to the trunk
When you are ready to get back to your shelved changes ("unshelve"), simply merge the shelf branch back to your local copy.
If you don't know command-line SVN nor Tortoise SVN well enough to do the above, here's a super detailed step-by-step instruction on how to do it in Tortoise SVN:
- Do "SVN Update" to update your working copy to the latest version of the trunk. This way the only differences between your local copy and the trunk are your changes.
- From the context menu select "Branch / Tag"
- "HEAD version in the repository" option is selected by default. Keep that.
- Change the "To Url" to specify branch name, e.g.
http://server/repository/project1/branches/shelf1
- Check the "Switch working copy to new branch/tag" box
- Click Ok to create the branch and switch to it
- Do "SVN Commit..." and commit your changes to the newly created branch
- From the context menu select "Switch..."
- Change the "To URL" to the trunk URL e.g.
http://server/repository/project1/trunk
- Click Ok to switch back to the trunk
See this link for even more details and the command-line equivalent of the above:
Shelves in Subversion