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