prune: adjust 'nothing to prune' to imply user needs to specify revs to prune
authorKyle Lippincott <spectral@google.com>
Fri, 02 Aug 2019 13:00:11 -0700
changeset 4795 6c02b9ac2832
parent 4794 7b5d08e84c4d
child 4796 4b1518d69a41
prune: adjust 'nothing to prune' to imply user needs to specify revs to prune
CHANGELOG
hgext3rd/evolve/cmdrewrite.py
tests/test-prune.t
--- a/CHANGELOG	Sat Jul 20 17:33:00 2019 +0800
+++ b/CHANGELOG	Fri Aug 02 13:00:11 2019 -0700
@@ -1,6 +1,11 @@
 Changelog
 =========
 
+9.1.0 - in progress
+-------------------
+
+  * prune: clarify error message when no revision were passed,
+
 9.1.0 -- 2019-07-29
 -------------------
 
--- a/hgext3rd/evolve/cmdrewrite.py	Sat Jul 20 17:33:00 2019 +0800
+++ b/hgext3rd/evolve/cmdrewrite.py	Fri Aug 02 13:00:11 2019 -0700
@@ -1028,7 +1028,7 @@
             rewriteutil.deletebookmark(repo, repomarks, bookmarks)
 
     if not revs:
-        raise error.Abort(_('nothing to prune'))
+        raise error.Abort(_('no revisions specified to prune'))
 
     wlock = lock = tr = None
     try:
--- a/tests/test-prune.t	Sat Jul 20 17:33:00 2019 +0800
+++ b/tests/test-prune.t	Fri Aug 02 13:00:11 2019 -0700
@@ -39,7 +39,7 @@
   abort: can only specify one of pair, fold
   [255]
   $ hg prune --fold --biject
-  abort: nothing to prune
+  abort: no revisions specified to prune
   [255]
   $ hg prune --split --fold
   abort: can only specify one of fold, split
@@ -307,7 +307,7 @@
   (activating bookmark todelete)
   $ hg prune -B nostrip
   bookmark 'nostrip' deleted
-  abort: nothing to prune
+  abort: no revisions specified to prune
   [255]
   $ hg tag --remove --local a
   $ hg prune -B todelete