Show More
@@ -164,9 +164,10 b' def _peerlookup(path):' | |||
|
164 | 164 | def islocal(repo): |
|
165 | 165 | '''return true if repo (or path pointing to repo) is local''' |
|
166 | 166 | if isinstance(repo, bytes): |
|
167 | try: | |
|
168 | return _peerlookup(repo).islocal(repo) | |
|
169 | except AttributeError: | |
|
167 | cls = _peerlookup(repo) | |
|
168 | cls.instance # make sure we load the module | |
|
169 | if util.safehasattr(cls, 'islocal'): | |
|
170 | return cls.islocal(repo) # pytype: disable=module-attr | |
|
170 | 171 |
|
|
171 | 172 | repo.ui.deprecwarn(b"use obj.local() instead of islocal(obj)", b"6.4") |
|
172 | 173 | return repo.local() |
General Comments 0
You need to be logged in to leave comments.
Login now