title: Mercurial discard local changes of a file or group of files or all
body: <p>From <a href="http://mercurial.selenic.com/wiki/FAQ#FAQ.2FCommonProblems.I_did_an_hg_revert_and_my_working_directory_still_has_changes_in_it.21" rel="noreferrer">Mercurial FAQ</a> page I read how to discard all local changes of my repo.</p>
  
  <pre><code>hg update -C -r
  </code></pre>
  
  <p>But what I want is to discard local changes in particular file and/or a group of files separated by space/comma. I tried following command but why this is not working?</p>
  
  <pre><code>hg update relative/path/to/my/file.rb
  </code></pre>