Hi Uwe,

According to hg help extensions:


To explicitly disable an extension enabled in a configuration file of
broader scope, prepend its path with !:

[extensions]
# disabling extension bar residing in /path/to/extension/bar.py
bar = !/path/to/extension/bar.py
# ditto, but no path was supplied for extension baz
baz = !



Worked for me, AFAIR

On Sat, Aug 17, 2024, 09:42 Uwe Brauer via Mercurial <
mercurial@lists.mercurial-scm.org> wrote:

>
> Hi
>
> I am on Ubuntu 24.04.
>
>     1. I know that if I don't set an extension globally in my .hgrc
>        file, I can set it locally in my .hg/hgrc file,
>
>     2. The same holds for a specific configuration.
>
>
> But can I achieve the opposite, that is
>
>     - globally in my .hgrc file I have activated the hg-git extension
>
>     - but in a specific repository, I would like not to use that
>       extension,
>
>     - the same holds for a configuration option say
>       in my .hgrc file I have
> ,----
> | [experimental]
> | hg-git-mode = branches
> `----
>      but I would like to de-activate that option in a specific
>       repository.
>
> Any idea how to achieve that?
>
> Regards
>
> Uwe Braure
>
>
>
>
>
>
> --
> I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
> I strongly condemn Putin's war of aggression against Ukraine.
> I support to deliver weapons to Ukraine's military.
> I support the EU and NATO membership of Ukraine.
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial@lists.mercurial-scm.org
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial
>
_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to