##// END OF EJS Templates
mq: avoid using `__file__` to compare modules...
Matt Harbison -
r44471:5bbd770d default
parent child Browse files
Show More
@@ -68,6 +68,7 b' import errno'
68 import os
68 import os
69 import re
69 import re
70 import shutil
70 import shutil
71 import sys
71 from mercurial.i18n import _
72 from mercurial.i18n import _
72 from mercurial.node import (
73 from mercurial.node import (
73 bin,
74 bin,
@@ -4277,8 +4278,9 b' def extsetup(ui):'
4277
4278
4278 dotable(commands.table)
4279 dotable(commands.table)
4279
4280
4281 thismodule = sys.modules["hgext.mq"]
4280 for extname, extmodule in extensions.extensions():
4282 for extname, extmodule in extensions.extensions():
4281 if extmodule.__file__ != __file__:
4283 if extmodule != thismodule:
4282 dotable(getattr(extmodule, 'cmdtable', {}))
4284 dotable(getattr(extmodule, 'cmdtable', {}))
4283
4285
4284
4286
General Comments 0
You need to be logged in to leave comments. Login now