File > Settings > Extensions tab clears disabled extensions
Created originally on Bitbucket by Anonymous
I have largefiles enabled in my user mercurial.ini, but disabled it on a specific project to avoid issue #1392 (closed). Whether the project hgrc file is edited with a text editor prior to switching to the extensions list item on the project specific repo tab, or it is edited with the edit button on that tab, hitting OK will remove the line from the project hgrc file completely. Hitting cancel won't erase the settings. Looking at only the user settings and never switching to the project settings tab also preserves the settings.
It seems that maybe that tab is being confused by the largefiles = ! line (as opposed to the unchecked state simply being transferred to the file by the OK button), because if that line is not present, the extensions enabled by the user file are greyed out on the project specific tab. With that disabling line, none of the extensions enabled by the user file are greyed out or check on the project tab.
(Related UI feedback aside: if the check boxes were tri-state, then inherited extensions could be disabled from the gui with one of those states. But with the edit button there, it isn't that big of a deal. I was originally confused that the inherited extensions were greyed out and not checked, because I thought they were unusable on that repo for some reason.)
I'm on Windows 7 with thg 2.2.1.