hgext/fastannotate/protocol.py
changeset 39543 2182e67ea912
parent 39251 bb2b462f81da
child 39620 b220851999b5
--- a/hgext/fastannotate/protocol.py	Tue Sep 11 16:04:55 2018 -0700
+++ b/hgext/fastannotate/protocol.py	Fri Sep 07 18:35:54 2018 -0700
@@ -14,7 +14,6 @@
     error,
     extensions,
     hg,
-    localrepo,
     util,
     wireprotov1peer,
     wireprotov1server,
@@ -221,7 +220,7 @@
 
 def clientreposetup(ui, repo):
     _registerwireprotocommand()
-    if isinstance(repo, localrepo.localrepository):
+    if repo.local():
         localreposetup(ui, repo)
     # TODO: this mutates global state, but only if at least one repo
     # has the extension enabled. This is probably bad for hgweb.