diff tests/test-rhg.t @ 48972:6b31c0676147

rhg: add support for ignoring all extensions Some workflows just want what `rhg` does and don't care about any extensions, this makes it easier. Differential Revision: https://phab.mercurial-scm.org/D12385
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 18 Mar 2022 17:39:06 +0100
parents 7ee07e1a25c0
children a932cad26d37
line wrap: on
line diff
--- a/tests/test-rhg.t	Thu Mar 17 12:27:40 2022 +0100
+++ b/tests/test-rhg.t	Fri Mar 18 17:39:06 2022 +0100
@@ -391,3 +391,17 @@
   $ echo "*:required = yes" >> $HGRCPATH
   $ rhg files
   a
+
+We can ignore all extensions at once
+
+  $ echo "[extensions]" >> $HGRCPATH
+  $ echo "thisextensionbetternotexist=" >> $HGRCPATH
+  $ echo "thisextensionbetternotexisteither=" >> $HGRCPATH
+  $ $NO_FALLBACK rhg files
+  unsupported feature: extensions: thisextensionbetternotexist, thisextensionbetternotexisteither (consider adding them to 'rhg.ignored-extensions' config)
+  [252]
+
+  $ echo "[rhg]" >> $HGRCPATH
+  $ echo "ignored-extensions=*" >> $HGRCPATH
+  $ $NO_FALLBACK rhg files
+  a