Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The basic problem here is that your working directory is not clean. Mercurial prevents people from accidentally jumping between branches with uncommitted changes as this is generally a bad idea.</p> <p>Let's start with that first command:</p> <pre><code>$ hg update tip abort: crosses branches (merge branches or use --clean to discard changes) </code></pre> <p>This is telling you two important things:</p> <ul> <li>you're trying to cross branches</li> <li>you have uncommitted changes</li> </ul> <p>And that you have two options:</p> <ul> <li>merge</li> <li>use hg update --clean to lose your changes</li> </ul> <p>So what are your changes? The first step is to run 'hg status'. As you say 'hg status outputs many files prepended by 1 or ?'. Well those '1s' are actually '!' indicating deleted/missing files (get a better font!). You should doublecheck against summary, which will give you output like this:</p> <pre><code>parent: 15200:fa6f93befffa patch: use more precise pattern for diff header color styling (issue3034) branch: default commit: 1 deleted, 1 unknown (clean) &lt;- your changes update: (current) </code></pre> <p>If you try to merge at this point, you'll get a message like:</p> <pre><code>$ hg merge stable abort: outstanding uncommitted changes (use 'hg status' to list changes) </code></pre> <p>If you have changes other than missing files, you'll want to consider committing them.</p> <p>If these missing files are your only changes, it's probably ok to discard them:</p> <pre><code>hg revert -a </code></pre> <p>After you've done that, you're in a state where Mercurial will let you update or merge without complaining.</p> <p>Finally, you say "hg status output many files from other projects since it starts at .. The file I added is the only file that should get added.". This is a basic misunderstanding of how Mercurial works. Unlike CVS or SVN, <strong>there is only one project</strong> as far as Mercurial is concerned and actions (commit/update/merge/status) work on the entire project tree at once. Subdirectories are not independent projects with separate histories.</p>
    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. 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.
    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