How do I "switch" with Mercurial

Jonas Meyer picture Jonas Meyer · Jul 20, 2009 · Viewed 42.7k times · Source

How do I do what svn switch does, in Mercurial?

That is change my working directory to switch to another branch in the repository?

Answer

Flavius Stef picture Flavius Stef · Jul 20, 2009
hg update -r<REV>

The update command will switch to a specified revision.