title: Mercurial how to rollback to a tag?
body: <p>I am a little confused about how to rollback to a tag in Mercurial. (which I am very new to)</p>
  <p>Say I have a tag called &quot;Version-1.0&quot; which was several revisions ago. lets say we are at r400 now</p>
  <p>Now if my managers were to tell me they don't like the direction things have been going and basically want to ditch everything since that tag and go back to Version-1.0.</p>
  <p>Well I can checkout that tag with:</p>
  <blockquote>
  <p>hg update -r Version-1.0</p>
  </blockquote>
  <p>Ok so now I am back to the version 1.0 tag, and if I were to never need to make a change this would be fine. However, as soon as I make a change and commit, I now have 2 heads (my new changes to Version-1.0 and r400 the stuff the managers want to ditch).</p>
  <p>So now I need to merge with r400. I don't want to. (I don't really want to wipe all those changes off the earth, I would like them to remain in my history so I can go back to them later if management changes their mind again) but I currently don't want any of them.</p>
  <p>What do I do?</p>
  <hr />
  <h3>update</h3>
  <p>An answer stated:</p>
  <blockquote>
  <p>You could clone the entire repository up until the tag, then use that clone as your &quot;new&quot; central repository.</p>
  </blockquote>
  <p>If my central repository is hosted by bitbucket, I am not sure how to do this. If the current one is at URL <code>https://jisaacks@bitbucket.org/jisaacks/hgml</code> and I want to clone it up to the tag to a new repo named <code>hgml2</code> (that doesn't exist yet) I tried this command locally on my machine:</p>
  <pre><code>hg clone -r Version-1.0 https://jisaacks@bitbucket.org/jisaacks/hgml https://jisaacks@bitbucket.org/jisaacks/hgml2
  </code></pre>
  <p>I get this error:</p>
  <blockquote>
  <p>abort: cannot create a new http repository</p>
  </blockquote>