[PATCH 2 of 6] remotefilelog: use repo.local() instead of isinstance()
Matt Harbison
mharbison72 at gmail.com
Wed Dec 26 16:33:34 EST 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1545596318 18000
# Sun Dec 23 15:18:38 2018 -0500
# Node ID 04b6bbd552360d479d44e956d1e0c201d19f15ef
# Parent 900b0af134505b6e5d227888212a17d8dd68342a
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
More information about the Mercurial-devel
mailing list