Submitter | phabricator |
---|---|
Date | Jan. 8, 2020, 7:50 p.m. |
Message ID | <45dbeea9e211356ecdc1fcd2abc5b950@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/44200/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -68,6 +68,7 @@ import os import re import shutil +import sys from mercurial.i18n import _ from mercurial.node import ( bin, @@ -4277,8 +4278,9 @@ dotable(commands.table) + thismodule = sys.modules["hgext.mq"] for extname, extmodule in extensions.extensions(): - if extmodule.__file__ != __file__: + if extmodule != thismodule: dotable(getattr(extmodule, 'cmdtable', {}))