changeset 37186:6d43b39fbaa0

narrow: use repo.local() instead of isinstance() Differential Revision: https://phab.mercurial-scm.org/D2973
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 30 Mar 2018 11:15:58 -0700
parents 027db60ae756
children 03ff17a4bf53
files hgext/narrow/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/__init__.py	Fri Mar 30 11:33:21 2018 -0700
+++ b/hgext/narrow/__init__.py	Fri Mar 30 11:15:58 2018 -0700
@@ -71,7 +71,7 @@
 
 def reposetup(ui, repo):
     """Wraps local repositories with narrow repo support."""
-    if not isinstance(repo, localrepo.localrepository):
+    if not repo.local():
         return
 
     narrowrepo.wraprepo(repo)