remotefilelog: use repo.local() instead of isinstance()
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 23 Dec 2018 15:18:38 -0500
changeset 41058 c61b8dfb07c8
parent 41057 f7863606d4ff
child 41059 0ecf58f7c2b2
remotefilelog: use repo.local() instead of isinstance()
hgext/remotefilelog/__init__.py
--- a/hgext/remotefilelog/__init__.py	Sun Dec 23 14:52:43 2018 -0500
+++ b/hgext/remotefilelog/__init__.py	Sun Dec 23 15:18:38 2018 -0500
@@ -375,7 +375,7 @@
         remotefilelog.remotefilelog.__len__ = oldlen
 
 def reposetup(ui, repo):
-    if not isinstance(repo, localrepo.localrepository):
+    if not repo.local():
         return
 
     # put here intentionally bc doesnt work in uisetup