Patchwork D2890: uncommit: document when the commit will be pruned

login
register
mail settings
Submitter phabricator
Date March 17, 2018, 5:36 p.m.
Message ID <a601499613beb2f06a0362a8a2a13076@localhost.localdomain>
Download mbox | patch
Permalink /patch/29583/
State Not Applicable
Headers show

Comments

phabricator - March 17, 2018, 5:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4cfa249f9e23: uncommit: document when the commit will be pruned (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2890?vs=7089&id=7091

REVISION DETAIL
  https://phab.mercurial-scm.org/D2890

AFFECTED FILES
  hgext/uncommit.py
  tests/test-uncommit.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-uncommit.t b/tests/test-uncommit.t
--- a/tests/test-uncommit.t
+++ b/tests/test-uncommit.t
@@ -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):
diff --git a/hgext/uncommit.py b/hgext/uncommit.py
--- a/hgext/uncommit.py
+++ b/hgext/uncommit.py
@@ -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)