D2973: narrow: use repo.local() instead of isinstance()

2018-03-30 Thread martinvonz (Martin von Zweigbergk)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6d43b39fbaa0: narrow: use repo.local() instead of 
isinstance() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2973?vs=7402=7409

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

AFFECTED FILES
  hgext/narrow/__init__.py

CHANGE DETAILS

diff --git a/hgext/narrow/__init__.py b/hgext/narrow/__init__.py
--- a/hgext/narrow/__init__.py
+++ b/hgext/narrow/__init__.py
@@ -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)



To: martinvonz, durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2973: narrow: use repo.local() instead of isinstance()

2018-03-30 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/narrow/__init__.py

CHANGE DETAILS

diff --git a/hgext/narrow/__init__.py b/hgext/narrow/__init__.py
--- a/hgext/narrow/__init__.py
+++ b/hgext/narrow/__init__.py
@@ -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)



To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel