Chapter 9 of Mercurial Book really should mention hg revert -r...

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Fri Nov 30 05:35:16 CST 2007


Well, as in the title. Chapter 9 of Mercurial Book seems to suggest that
hg revert is suitable to revert uncommited changes, and to reverse
commited changes one must use hg backout.

In practice, by far (at least for me) useful way to withdraw some
commited changes is

      hg revert -r revisionBeforeIStartedToMessUpThings
      hg commit -m "Withdrawing from failed idea"

while hg backout is rarely if ever useful (once I need to withdraw
commited changes, there are usually many commits, not just one)


PS Maybe it would make sense to show clearly what is the exact
difference between those two commands and why there are two.
Or maybe hg backout could handle range of revisions instead
of just one....


-- 
----------------------------------------------------------------------
| Marcin Kasperski   | Software is not released,
| http://mekk.waw.pl |  it is allowed to escape.
|                    |
----------------------------------------------------------------------



More information about the Mercurial mailing list