Patchwork [2,of,6] remotefilelog: use repo.local() instead of isinstance()

login
register
mail settings
Submitter Matt Harbison
Date Dec. 26, 2018, 9:33 p.m.
Message ID <04b6bbd552360d479d44.1545860014@Envy>
Download mbox | patch
Permalink /patch/37355/
State Accepted
Headers show

Comments

Matt Harbison - Dec. 26, 2018, 9:33 p.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@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()

Patch

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