# HG changeset patch # User Martin von Zweigbergk # Date 1522433758 25200 # Node ID 6d43b39fbaa093e25b915bc2f03264d533bafeb3 # Parent 027db60ae7560cf57066f6fbe25e0fbe17a8bc89 narrow: use repo.local() instead of isinstance() Differential Revision: https://phab.mercurial-scm.org/D2973 diff -r 027db60ae756 -r 6d43b39fbaa0 hgext/narrow/__init__.py --- 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)