[PATCH STABLE] help: do not suggest "update --clean ." to cancel uncommitted merge

Yuya Nishihara yuya at tcha.org
Tue Jan 23 12:29:45 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1516709676 -32400
#      Tue Jan 23 21:14:36 2018 +0900
# Branch stable
# Node ID 4e1c8beb9b7abf6b9addc64a59da186a8b3857d2
# Parent  de23345e2b6b880880896e27e5e2f745efa3799b
help: do not suggest "update --clean ." to cancel uncommitted merge

Follows up 41ef02ba329b.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4560,7 +4560,7 @@ def revert(ui, repo, *pats, **opts):
 
        To check out earlier revisions, you should use :hg:`update REV`.
        To cancel an uncommitted merge (and lose your changes),
-       use :hg:`update --clean .`.
+       use :hg:`merge --abort`.
 
     With no revision specified, revert the specified files or directories
     to the contents they had in the parent of the working directory.
@@ -5501,7 +5501,7 @@ def update(ui, repo, node=None, rev=None
          the working directory is updated to the requested changeset.
 
     To cancel an uncommitted merge (and lose your changes), use
-    :hg:`update --clean .`.
+    :hg:`merge --abort`.
 
     Use null as the changeset to remove the working directory (like
     :hg:`clone -U`).


More information about the Mercurial-devel mailing list