I found myself accidentally making changes in the wrong branch before I checked anything in. I tried to switch branch and it told me I couldn't because I had outstanding changes. I read that I could shelve changes, switch branch and then retrieve those changes on the correct branch.
I have done the first two steps but now can't find a way to actually unshelve the changes. I can't find anything in menus either in the toolbar or context menus. I've looked in the .hg/attic directory and I can see the changes stored there so I know that its not that they don't exist.
In the left panel of your repository, (not counting bookmarks, if you're on windows), you should see expandable lists for "File Status", "Branches", "Tags", "Remotes", and "Stashes" ("Shelves"). Some of the terminology may be slightly different, because I use Git, not Mercurial.
You should be able to expand Shelves, and right click a shelf to apply/delete.
Ah yes. I can see it now. I'd totally missed that thing (it was collapsed by default so didn't really impinge on my vision). Thanks very much! As it is I have mannually redone things for now but it will be massively useful for the future. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you do the shelving?
I cannot speak for mercurial but for git only - I think the procedure is called "stashing" in git
Using Sourcetree 1.3.3 on Windows.
Hope that helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wrote the answer simultanously ... :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is very helpful but sadly just a bit slower than Seth. I did indeed stash as you suggested but hadn't really understood how it worked so was just expecting a similar "unstash" button somewhere to click on. What you say makes perfect sense now and will make me more efficient with sourcetree now. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I figured. I'm on stackoverflow a lot where this looks like it comes from and am very used to the whole simultaneous answers thing. ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For newbies, there is a Hide/Show option when you mouseover each category, e.g.BRANCHES, BOOKMARKS, ..., SHELVED. You may need to hide some other list and show the desired list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you don't see the hide/show options, try expanding the sidebar to make it wider. These links are apparently only shown if there is room.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.