comparison hgext/remotefilelog/__init__.py @ 41058:c61b8dfb07c8

remotefilelog: use repo.local() instead of isinstance()
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 23 Dec 2018 15:18:38 -0500
parents 05afb32e9380
children 2338eab5f8b7
comparison
equal deleted inserted replaced
41057:f7863606d4ff 41058:c61b8dfb07c8
373 return orig(*args, **kwds) 373 return orig(*args, **kwds)
374 finally: 374 finally:
375 remotefilelog.remotefilelog.__len__ = oldlen 375 remotefilelog.remotefilelog.__len__ = oldlen
376 376
377 def reposetup(ui, repo): 377 def reposetup(ui, repo):
378 if not isinstance(repo, localrepo.localrepository): 378 if not repo.local():
379 return 379 return
380 380
381 # put here intentionally bc doesnt work in uisetup 381 # put here intentionally bc doesnt work in uisetup
382 ui.setconfig('hooks', 'update.prefetch', wcpprefetch) 382 ui.setconfig('hooks', 'update.prefetch', wcpprefetch)
383 ui.setconfig('hooks', 'commit.prefetch', wcpprefetch) 383 ui.setconfig('hooks', 'commit.prefetch', wcpprefetch)