changeset 25365 | 4cc3fb23881d |
parent 24945 | e0b0fbd47491 |
child 25591 | f1d46075b13a |
--- a/mercurial/hg.py Mon Mar 30 16:23:35 2015 +0900 +++ b/mercurial/hg.py Sat May 30 12:46:30 2015 +0900 @@ -92,6 +92,10 @@ try: return thing(path) except TypeError: + # we can't test callable(thing) because 'thing' can be an unloaded + # module that implements __call__ + if not util.safehasattr(thing, 'instance'): + raise return thing def islocal(repo):