D2890: uncommit: document when the commit will be pruned
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Mar 17 17:14:07 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2890
AFFECTED FILES
hgext/uncommit.py
tests/test-uncommit.t
CHANGE DETAILS
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)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list