Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As others have indicated, almost but not quite. In order of decreasing similarity to <code>svn update</code> (and increasing compliance with general DVCS, and specifically Mercurial, best practices[1]):</p> <ol> <li><p><code>hg pull -u</code> (or <code>hg pull</code> followed by <code>hg update</code>) with your changes uncommitted and no committed changes since your last pull. This is as close to <code>svn update</code> as you can get, but is pretty bad DVCS practice. One of the niceties of DVCS is that you can commit your changes before trying to merge them with others, and thus have a backup version to rollback and retry a failed merge, and this practice gives that up. Don't do it.</p></li> <li><p><code>hg pull --rebase</code> after committing your changes. This pulls the upstream changes, re-applies your changes on top of them, and lets you push your changes back as a linear history. The end result will look very similar to a Subversion revision history, but you get the DVCS benefit of committing before merging. I do not know how the safety of this mode of operation compares between Mercurial and Git, though; in Git, pre-rebase versions of your changes will still be there until you do a <code>git gc</code>, but Mercurial doesn't have an explicit <code>gc</code> safety net.</p></li> <li><p><code>hg pull</code> followed by <code>hg merge</code> with your changes already committed to your local copy. This is the traditional Mercurial practice for doing the functional analog of <code>svn update</code>, notwithstanding footnote 1 below. This results in a nonlinear version history, but all changes are tracked and inspectable.</p></li> </ol> <p>That said, there is much wisdom in thinking of Mercurial (and other DVCSes) on their own terms, and not trying to translate from Subversion/CVS-style thinking.</p> <ol> <li>If you are not of the rewrite-history-to-keep-it-linear school of thought. If you are, then <code>rebase</code> is probably preferable to <code>update</code>. The Mercurial community tends to favor <code>update</code>.</li> </ol>
    singulars
    1. This table or related slice is empty.
    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.
 

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