[PATCH 1 of 2 evolve-ext V2] help: remove a few commands from `hg` (no args) command list

Kyle Lippincott spectral at google.com
Wed Dec 6 00:29:18 UTC 2017


# HG changeset patch
# User Kyle Lippincott <spectral at google.com>
# Date 1512518930 28800
#      Tue Dec 05 16:08:50 2017 -0800
# Node ID 21abe1e218b87428e4249e67990c345c63d521f6
# Parent  28fb347a5bf8cce93ebdfd0cc64a818e335804f9
help: remove a few commands from `hg` (no args) command list

According to `hg help -e evolve`, the following commands come from the evolve
extension:

amend
evolve
fold
metaedit
next
obslog
pdiff
previous
prune
pstatus
split
touch
uncommit

If one runs `hg` without arguments, commands that are prefixed with a ^
character are shown.  From the previous list, this includes:

evolve
fold
metaedit
next
previous
prune
split
touch
uncommit

It feels several of these commands are not "basic commands" that someone who
has never used hg before might care about.  They probably also do not come
close to passing the "toothbrush test": things that users are likely to use
every day.  This commit removes these items from the list: metaedit, touch,
uncommit

This means the following are kept:

evolve
fold
next
previous
prune
split

diff --git a/hgext3rd/evolve/cmdrewrite.py b/hgext3rd/evolve/cmdrewrite.py
--- a/hgext3rd/evolve/cmdrewrite.py
+++ b/hgext3rd/evolve/cmdrewrite.py
@@ -298,7 +298,7 @@
         ds.copy(src, dst)
 
 @eh.command(
-    '^uncommit',
+    'uncommit',
     [('a', 'all', None, _('uncommit all changes when no arguments given')),
      ('i', 'interactive', False, _('interactive mode to uncommit (EXPERIMENTAL)')),
      ('r', 'rev', '', _('revert commit content to REV instead')),
@@ -617,7 +617,7 @@
         lockmod.release(lock, wlock)
 
 @eh.command(
-    '^metaedit',
+    'metaedit',
     [('r', 'rev', [], _("revision to edit")),
      ('', 'fold', None, _("also fold specified revisions into one")),
      ('n', 'note', '', _('store a note on metaedit')),
@@ -1037,7 +1037,7 @@
         lockmod.release(tr, lock, wlock)
 
 @eh.command(
-    '^touch',
+    'touch',
     [('r', 'rev', [], 'revision to update'),
      ('n', 'note', '', _('store a note on touch')),
      ('D', 'duplicate', False,


More information about the Mercurial-devel mailing list