diff mercurial/debugcommands.py @ 45880: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 d6279c43fc60
children 1a72e4839795
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sat Nov 07 16:36:19 2020 -0800
+++ b/mercurial/debugcommands.py	Sun Nov 08 16:23:35 2020 -0500
@@ -78,6 +78,7 @@
     sshpeer,
     sslutil,
     streamclone,
+    strip,
     tags as tagsmod,
     templater,
     treediscovery,
@@ -105,7 +106,9 @@
 
 release = lockmod.release
 
-command = registrar.command()
+table = {}
+table.update(strip.command._table)
+command = registrar.command(table)
 
 
 @command(b'debugancestor', [], _(b'[INDEX] REV1 REV2'), optionalrepo=True)