# HG changeset patch # User Matt Harbison # Date 2018-12-23 20:18:38 # Node ID c61b8dfb07c8832f488c1119baf258fa47900d27 # Parent f7863606d4ff6ba2c1f013269c46b3de4c0e163e remotefilelog: use repo.local() instead of isinstance() diff --git a/hgext/remotefilelog/__init__.py b/hgext/remotefilelog/__init__.py --- a/hgext/remotefilelog/__init__.py +++ b/hgext/remotefilelog/__init__.py @@ -375,7 +375,7 @@ def debugdatashallow(orig, *args, **kwds remotefilelog.remotefilelog.__len__ = oldlen def reposetup(ui, repo): - if not isinstance(repo, localrepo.localrepository): + if not repo.local(): return # put here intentionally bc doesnt work in uisetup