changeset 36979:d63c5c651183

uncommit: document when the commit will be pruned Differential Revision: https://phab.mercurial-scm.org/D2890
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 17 Mar 2018 09:49:21 -0700
parents 28ba7d111337
children 435b8b05affd
files hgext/uncommit.py tests/test-uncommit.t
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/uncommit.py	Wed Mar 14 11:16:49 2018 -0700
+++ b/hgext/uncommit.py	Sat Mar 17 09:49:21 2018 -0700
@@ -151,6 +151,9 @@
     files to their uncommitted state. This means that files modified or
     deleted in the changeset will be left unchanged, and so will remain
     modified in the working directory.
+
+    If no files are specified, the commit will be pruned, unless --keep is
+    given.
     """
     opts = pycompat.byteskwargs(opts)
 
--- a/tests/test-uncommit.t	Wed Mar 14 11:16:49 2018 -0700
+++ b/tests/test-uncommit.t	Sat Mar 17 09:49:21 2018 -0700
@@ -27,6 +27,9 @@
       deleted in the changeset will be left unchanged, and so will remain
       modified in the working directory.
   
+      If no files are specified, the commit will be pruned, unless --keep is
+      given.
+  
   (use 'hg help -e uncommit' to show help for the uncommit extension)
   
   options ([+] can be repeated):