diff tests/test-strip.t @ 45865:d7a508a75d72

strip: move into core As discussed at the 5.2 sprint, replace strip extension by a core command, debugstrip. Obviously, the extension stays for backwards compatibility. As an implementation note, I moved the strip file as is into core, which is not done elsewhere, AFAIK. I could have inlined it into debugcommands, but that doesn't sound great. Differential Revision: https://phab.mercurial-scm.org/D9285
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Sun, 08 Nov 2020 16:23:35 -0500
parents 527ce85c2e60
children 95c4cca641f6
line wrap: on
line diff
--- a/tests/test-strip.t	Sat Nov 07 16:36:19 2020 -0800
+++ b/tests/test-strip.t	Sun Nov 08 16:23:35 2020 -0500
@@ -10,7 +10,7 @@
   >     hg up -C $1
   >     echo % before update $1, strip $2
   >     hg log -G -T '{rev}:{node}'
-  >     hg --traceback strip $2
+  >     hg --traceback debugstrip $2
   >     echo % after update $1, strip $2
   >     hg log -G -T '{rev}:{node}'
   >     restore
@@ -765,13 +765,11 @@
 Make sure no one adds back a -b option:
 
   $ hg strip -b tip
-  hg strip: option -b not recognized
-  hg strip [-k] [-f] [-B bookmark] [-r] REV...
+  hg debugstrip: option -b not recognized
+  hg debugstrip [-k] [-f] [-B bookmark] [-r] REV...
   
   strip changesets and all their descendants from the repository
   
-  (use 'hg help -e strip' to show help for the strip extension)
-  
   options ([+] can be repeated):
   
    -r --rev REV [+]           strip specified revision (optional, can specify
@@ -783,7 +781,7 @@
    -B --bookmark BOOKMARK [+] remove revs only reachable from given bookmark
       --mq                    operate on patch repository
   
-  (use 'hg strip -h' to show more help)
+  (use 'hg debugstrip -h' to show more help)
   [255]
 
   $ cd ..