[PATCH] revert: is reverting file states, not just file contents

Adrian Buehlmann adrian at cadifra.com
Thu Jun 9 11:51:52 CDT 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1307637554 -7200
# Node ID d307aabb5eaf1fb23de6964651cbd3f1946370f4
# Parent  48ec0763afbbbbb4802fb836ae75256e82e5609c
revert: is reverting file states, not just file contents

e.g. x bit is reverted as well

Also makes this paragraph more consistent with the preceding one,
which already uses the term "state" (not "content").

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4098,7 +4098,7 @@
     state and unschedules adds, removes, copies, and renames.
 
     Using the -r/--rev or -d/--date options, revert the given files or
-    directories to their contents as of a specific revision. Because
+    directories to their states as of a specific revision. Because
     revert does not change the working directory parents, this will
     cause these files to appear modified. This can be helpful to "back
     out" some or all of an earlier change. See :hg:`backout` for a


More information about the Mercurial-devel mailing list