How to save code changes (for later;) without committing in Mercurial Hg?

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.

  1. In Merculiar Hg go to your Working Directory containing the changes.
  2. Choose Repository->Shelve…

1

3. Click on “New Shelf” icon.2

4. Name the self.3

5. Use the blue arrow icons to move changes from the Working Directory to the shelf.

Done 🙂

Advertisements
Create your website at WordPress.com
Get started
%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close