<p>I've moved from TFS to SVN (TortoiseSVN) with my current company. I really miss the "Shelve" feature of TFS. I've read various articles on how to "Shelve" with SVN, but I've read nothing that gives a very simple experience to "shelve" work.</p>

<p>Ideally, I'd like extra items added to the TortoiseSVN context menu - "Shelve" &amp; "Unshelve".
"Shelve" would remove the current shelve-set, and upload the working directory under a suitable path defined by user options. "Unshelve" would merge the set with the working copy.</p>

<p>Does something like this exist? Can anyone suggest any ways to "hack" this feature in the GUI?</p>

<p>Note: The following link doesn't really achieve the user experience I was looking for:</p>

<p><a href="http://mikemason.ca/2005/03/30/" rel="noreferrer">Shelving Subversion</a></p>

<p>One of the greatest things about TFS Shelve is how easy it is to use...</p>

[{'answer_id': 8501, 'author': 'OJ.', 'author_id': 611, 'author_profile': 'https://Stackoverflow.com/users/611', 'pm_score': 5, 'selected': False, 'text': '<p>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.</p>\n\n<p>To get around this problem, I have resorted to using a DVCS such as <a href="http://git.or.cz/" rel="nofollow noreferrer">Git</a> or <a href="http://www.selenic.com/mercurial/" rel="nofollow noreferrer">Mercurial</a>, 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.</p>\n'}, {'answer_id': 6138145, 'author': 'gbjbaanb', 'author_id': 13744, 'author_profile': 'https://Stackoverflow.com/users/13744', 'pm_score': 1, 'selected': False, 'text': "<p>You can use a DVCS but in a way this is a kludge. 'Shelving' in a DVCS stores your changes locally only. Its useful only if you want to checkpoint your work to rollback if you break it with further work, but preferably you'd want to save your work on the server.</p>\n\n<p>One way to do this in SVN without an explicit shelve command is to switch your working copy to a different svn location and commit there instead of on your main repo. This is effectively like creating a temporary branch and working on that for the duration of your work. I don't think you'll even have to merge as SVN will do it for you when you switch, as your local modifications will be kept. </p>\n\n<p>Unfortunately, you cannot switch to a non-existent location, so the first time you do this, you'll have to create the 'branch' to shelve to. I guess the whole thing could be automated.</p>\n"}, {'answer_id': 6202975, 'author': 'Andriy Volkov', 'author_id': 76859, 'author_profile': 'https://Stackoverflow.com/users/76859', 'pm_score': 4, 'selected': False, 'text': '<p>If you understand how SVN branches work, emulating Shelve in SVN is a no-brainer:</p>\n\n<ol>\n<li>Create a branch in the repository (on the server)</li>\n<li>Switch your local copy to it</li>\n<li>Commit your changes to the new branch</li>\n<li>Switch your local copy back to the trunk</li>\n</ol>\n\n<p>When you are ready to get back to your shelved changes ("unshelve"), simply merge the shelf branch back to your local copy.</p>\n\n<p>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:</p>\n\n<ol>\n<li>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.</li>\n<li>From the context menu select "Branch / Tag"</li>\n<li>"HEAD version in the repository" option is selected by default. Keep that.</li>\n<li>Change the "To Url" to specify branch name, e.g. <code>http://server/repository/project1/branches/shelf1</code></li>\n<li>Check the "Switch working copy to new branch/tag" box</li>\n<li>Click Ok to create the branch and switch to it</li>\n<li>Do "SVN Commit..." and commit your changes to the newly created branch</li>\n<li>From the context menu select "Switch..."</li>\n<li>Change the "To URL" to the trunk URL e.g. <code>http://server/repository/project1/trunk</code></li>\n<li>Click Ok to switch back to the trunk</li>\n</ol>\n\n<p>See this link for even more details and the command-line equivalent of the above:<br>\n<a href="http://markphip.blogspot.com/2007/01/shelves-in-subversion.html">Shelves in Subversion</a></p>\n'}, {'answer_id': 9277679, 'author': 'Paul Ruane', 'author_id': 83264, 'author_profile': 'https://Stackoverflow.com/users/83264', 'pm_score': 3, 'selected': False, 'text': "<p>Another option is to use the 'Create patch' facility in TortoiseSvn to create a patch file and revert changes. The patch file can later be reapplied to get back where you were.</p>\n\n<p>You may still end up with some sticky merges if you have to update the working copy revision though.</p>\n"}, {'answer_id': 49629412, 'author': 'ccalboni', 'author_id': 147191, 'author_profile': 'https://Stackoverflow.com/users/147191', 'pm_score': 5, 'selected': True, 'text': '<p>Shelving in SVN is starting to roll out with version 1.10, see <a href="https://subversion.apache.org/docs/release-notes/1.10.html#shelving" rel="noreferrer">Release Notes</a></p>\n'}, {'answer_id': 49995788, 'author': 'TWT', 'author_id': 638244, 'author_profile': 'https://Stackoverflow.com/users/638244', 'pm_score': 4, 'selected': False, 'text': '<p><code>TortoiseSVN 1.10</code> now supports <code>shelving</code>: <a href="https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-shelving.html" rel="noreferrer">https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-shelving.html</a></p>\n'}, {'answer_id': 53224064, 'author': 'tartarismo', 'author_id': 8216634, 'author_profile': 'https://Stackoverflow.com/users/8216634', 'pm_score': 2, 'selected': False, 'text': '<p>SVN have upgraded the shelving \n<a href="https://subversion.apache.org/docs/release-notes/1.11.html#shelving" rel="nofollow noreferrer">https://subversion.apache.org/docs/release-notes/1.11.html#shelving</a> </p>\n\n<blockquote>\n  <p>The kinds of change you can shelve are committable changes to files\n  and properties, except the following kinds which are not yet\n  supported:</p>\n  \n  <ul>\n  <li>copies and moves</li>\n  <li>creating and deleting directories</li>\n  </ul>\n</blockquote>\n'}, {'answer_id': 71512093, 'author': 'Abilogos', 'author_id': 9287628, 'author_profile': 'https://Stackoverflow.com/users/9287628', 'pm_score': 0, 'selected': False, 'text': '<h2>Support Feature</h2>\n<p>SVN supports for shelves is <strong>experimental</strong> means, it doesn\'t promise backward compatibility for future releases, either its disabled by default.</p>\n<p>it has been <a href="https://subversion.apache.org/docs/release-notes/1.10.html#shelving" rel="nofollow noreferrer">started with version 1.10</a></p>\n<p>but the shelves create with 1.10 &amp; 1.11 <a href="https://subversion.apache.org/docs/release-notes/1.12.html#cmdline" rel="nofollow noreferrer">is not supported by newer version</a>, as it didn\'t promises so.</p>\n<p>so there are different underlying and you have to pay attention that this is an experimental feature and is going to be improved over the time.</p>\n<p>the 1.10 shelve commands start with <code>svn shelve</code> but the 1.11 &amp; 1.12 starts with <code>svn x-shelve</code>.</p>\n<h2>Commands</h2>\n<p>the <a href="https://subversion.apache.org/docs/release-notes/1.14.html#shelving" rel="nofollow noreferrer">commands</a> for new shelve are:</p>\n<pre class="lang-sh prettyprint-override"><code>    svn x-shelf-diff\n    svn x-shelf-drop\n    svn x-shelf-list, x-shelves\n    svn x-shelf-list-by-paths\n    svn x-shelf-log\n    svn x-shelf-save\n    svn x-shelve\n    svn x-unshelve\n</code></pre>\n<h2>Activating</h2>\n<p>for activating using this feature you have to run the command by setting the enviourment variable:</p>\n<pre class="lang-sh prettyprint-override"><code>#Shelving-v3, as introduced in 1.12\nSVN_EXPERIMENTAL_COMMANDS=shelf3\n#Shelving-v2, as introduced in 1.11\nSVN_EXPERIMENTAL_COMMANDS=shelf2\n</code></pre>\n<p>further information can be found here:</p>\n<p><a href="https://subversion.apache.org/docs/release-notes/1.14.html#shelving" rel="nofollow noreferrer">https://subversion.apache.org/docs/release-notes/1.14.html#shelving</a></p>\n'}]
['https://Stackoverflow.com/questions/8496', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/708/']