Submitter | phabricator |
---|---|
Date | Dec. 30, 2019, 6:36 p.m. |
Message ID | <differential-rev-PHID-DREV-jzxfasa7bwi36vngxe5f-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/44137/ |
State | Superseded |
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, @@ -4278,8 +4279,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', {}))