title: Can I revert a range of lines in a file with mercurial?
body: <p>I often notice a few unwanted changes when I review my working copy (with <code>hg status</code> and <code>hg diff</code>) right before a commit. For example, I might have temporarily added or remove some code just for the duration of a debugging session.</p>
  
  <p>I know I can use <code>hg revert</code> to remove unwanted changes, but this removes all the changes in the entire file. Is there a way to revert just a part of a file?</p>