extensions: refactor function for obtaining disabled extension help
The way this worked before was hgext.__index__ was consulted. This file appears to only be present on some Windows distributions. This file contains a dict mapping extension name to its summary line, not its full docstring. The problem with this is that code in the help system was calling this function to resolve help text. If hgext.__index__ was present, only the summary line would be displayed. If not, the full extension help would be printed. This commit changes the function to not use hgext.__index__ such that it always returns the full extension help text. As a result of this change, test-extension.t and test-qrecord.t now pass when run from environments that have an hgext.__index__. Differential Revision: https://phab.mercurial-scm.org/D8344
Loading
-
mentioned in commit c3dfcb213153
-
mentioned in commit 445939780453
-
mentioned in commit e72b11d20b11
-
mentioned in commit 020376ac2429
-
mentioned in commit 42d4213754ce
-
mentioned in commit e442c0666d42
-
mentioned in commit 7d6c8943353a
-
mentioned in commit f4a363b25859
-
mentioned in commit d278a74b8c66
-
mentioned in commit 53711003945d
Please register or sign in to comment