D4542: fastannotate: use repo.local()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Wed Sep 12 08:31:49 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2182e67ea912: fastannotate: use repo.local() (authored by indygreg, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D4542?vs=10919&id=10920#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4542?vs=10919&id=10920

REVISION DETAIL
  https://phab.mercurial-scm.org/D4542

AFFECTED FILES
  hgext/fastannotate/protocol.py

CHANGE DETAILS

diff --git a/hgext/fastannotate/protocol.py b/hgext/fastannotate/protocol.py
--- a/hgext/fastannotate/protocol.py
+++ b/hgext/fastannotate/protocol.py
@@ -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.



To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list