title: Mercurial: How to pull and update to a specific tag
body: <p>I would like to pull the latest changesets from a remote repository and at the same time, update my local repo to a certain <code>tag</code>. Something similar as <code>hg fetch</code> or <code>hg pull -u</code>, but with an update to a tag. In two lines of code, this is:</p>
  
  <pre><code>hg pull
  hg update mytag
  </code></pre>
  
  <p><code>hg pull --help</code> reveals the following, but unfortunately none of them are working for a tag:</p>
  
  <pre><code>options:
  
   -u --update                update to new branch head if changesets were pulled
   -f --force                 run even when remote repository is unrelated
   -r --rev REV [+]           a remote changeset intended to be added
   -B --bookmark BOOKMARK [+] bookmark to pull
   -b --branch BRANCH [+]     a specific branch you would like to pull
   -e --ssh CMD               specify ssh command to use
    --remotecmd CMD           specify hg command to run on the remote side
    --insecure                do not verify server certificate (ignoring web.cacerts config)
  </code></pre>
  
  <p>What I tried:</p>
  
  <pre><code>hg pull -r mytag            only pulls the latest changesets, but no update
  hg pull -u                  pulls and updates to tip, but no tag allowed
  hg pull -b mytag            abort: unknown branch
  hg pull -B mytag            abort: remote bookmark mytag not found
  </code></pre>
  
  <p>Is it possible to do it in one line?</p>