Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Personally, I don't like any of the answers posted so far:</p> <ol> <li>I don't like clone branching because I like each project to have only <em>one</em> directory. Working on different directories at the same time completly messes the history of recent files of my editors. I always end up changing the wrong file. So I don't do that anymore.</li> <li>I use <code>shelve</code> for quick fixes (just to move my uncommited changes to another branch, if I realize I'm at the wrong one). You are talking about days, no way I'd shelve something for days.</li> <li>I think <code>mq</code> is too complicated for such an ordinary sittuation</li> </ol> <p>I think the best way is to simply commit your changes, than you go back to the changeset before you start these changes and work from there. There are some minor issues, let me illustrate:</p> <p>Let's say you have the changeset A. Than you start your changes. At this point you want set it aside for a while. First of all, commit your work:</p> <pre><code>hg ci -m "Working on new stuff" </code></pre> <p>If you want, you can add a bookmark to make it easier to come back later. I always create bookmarks to my anonymous branches.</p> <pre><code>hg bookmark new-stuff </code></pre> <p>Go back to the changeset before these modifications</p> <pre><code>hg update A </code></pre> <p>From here, you work and generate the changeset C. Now you have 2 heads (B and C), you'll be warned when you try to push. You can push only one branch by specifying the head of that branch:</p> <pre><code>hg push -r C </code></pre> <p>Or you can change the phase of the <code>new-stuff</code> branch to secret. Secret changesets won't be pushed.</p> <pre><code>hg phase -r new-stuff --secret --force </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload