title: Switching between Mercurial branches
body: <p>If I look at <a href="https://www.mercurial-scm.org/wiki/NamedBranches" rel="nofollow noreferrer">Mercurial's site</a>, it seems to tell me to use <code>update -C</code> to switch between branches. Another <a href="https://stackoverflow.com/questions/2159623/how-can-i-switch-to-a-tag-branch-in-hg">Stack Overflow</a> answer says to use <code>checkout</code> instead.</p>
  
  <p>What are the differences? It seems to me that <code>checkout</code> updates the files in the working directory to the branch too, like <code>update -C</code>.</p>