Sometimes we need to set aside some code changes to brood over later or we switch back and forth between two or more alternative solutions. The way to save changes without actually committing them is creating shelves. I use additional shelves a lot to save files with debugging logs and comments when trying to comprehend the causes of nasty bugs.
- In Merculiar Hg go to your Working Directory containing the changes.
- Choose Repository->Shelve…
3. Click on “New Shelf” icon.
4. Name the self.
5. Use the blue arrow icons to move changes from the Working Directory to the shelf.