mercurial/ui.py
changeset 45788 ed84a4d48910
parent 45062 02b17231f6c3
child 45817 330c258fe7ca
--- a/mercurial/ui.py	Mon Oct 26 10:08:22 2020 -0700
+++ b/mercurial/ui.py	Fri Oct 23 10:56:18 2020 -0700
@@ -507,6 +507,8 @@
                 del cfg[b'defaults'][k]
             for k, v in cfg.items(b'commands'):
                 del cfg[b'commands'][k]
+            for k, v in cfg.items(b'command-templates'):
+                del cfg[b'command-templates'][k]
         # Don't remove aliases from the configuration if in the exceptionlist
         if self.plain(b'alias'):
             for k, v in cfg.items(b'alias'):