Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not exactly.</p> <p><code>hg pull</code> grabs the revisions from the other repository and adds them to the locally available revisions in your clone of the repository, but <em>does not update your working copy</em> - only your <em>repository</em> (which, for DCVS like hg/git/etc is not the same thing as a working copy).</p> <p><code>hg update</code> updates your actual working copy to the latest revision in your local repository.</p> <p>This differs from Subversion because in svn, there is no such thing as your "local repository" - the only repository is the one on the server; you only have a working copy locally. Hence why <code>update</code> is only a single command, as opposed to Mercurial's <code>pull</code> and then <code>update</code>.</p> <p>The equivalent to <code>svn update</code> for Mercurial would be <code>hg pull --update</code>, which is equivalent to doing <code>hg pull</code> and then <code>hg update</code> one after another.</p> <p>An end-to-end workflow for DCVS with a "central" repo looks something like this:</p> <ol> <li>A does <code>hg commit</code> on some changes.</li> <li>A does <code>hg push</code> to push them the central repository.</li> <li>B does <code>hg pull</code> to pull them from the central repository into their own clone.</li> <li>B does <code>hg update</code> to update their working copy to reflect the changes pulled into their clone.</li> </ol> <p>In systems without a central repo, it would instead look something like this:</p> <ol> <li>A does <code>hg commit</code> on some changes.</li> <li>B, who has cloned A's repo, wants those changes, and thus does an <code>hg pull</code> directly from A's repo.</li> <li>B uses <code>hg update</code> to update their working copy to the changes.</li> </ol> <p>Also, the equivalent to <code>svn revert</code> is <code>hg revert</code>. :)</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. 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