# HG changeset patch # User Martin von Zweigbergk # Date 2018-03-17 16:49:21 # Node ID d63c5c651183515cfb9eb91f33428f36a33d0312 # Parent 28ba7d111337cfd028b24aeadf55fca81d001376 uncommit: document when the commit will be pruned Differential Revision: https://phab.mercurial-scm.org/D2890 diff --git a/hgext/uncommit.py b/hgext/uncommit.py --- a/hgext/uncommit.py +++ b/hgext/uncommit.py @@ -151,6 +151,9 @@ def uncommit(ui, repo, *pats, **opts): 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) 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 @@ Help for uncommit 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):