Mercurial equivalent of "git pull --rebase"

git, git-rebase, mercurial

Solution

Try `hg pull --rebase`. Mecurial's pull is git's fetch, and git's fetch is mercurial's pull, but when you're rebasing you're updating the working dir either way, so `hg pull --rebase` is your guy.

NOTE: Because `rebase` alters history, it's disabled by default. You can turn it on (no need to download, you already have it) by adding the following in the configuration file:

[extensions]
rebase =

(more info)

Problem

Is there a Mercurial equivalent of `git pull --rebase`?

Original source

Related problems