# HG changeset patch # User Boris Feld # Date 1507926483 -7200 # Node ID 8cf0a6cd1ed2cc1c45e28f02908e663c22691833 # Parent 3f3c6d12095d5646af8aeab012ab7b4ca1fdd673 configitems: register the 'largefiles.usercache' config diff -r 3f3c6d12095d -r 8cf0a6cd1ed2 hgext/largefiles/__init__.py --- a/hgext/largefiles/__init__.py Fri Oct 13 22:26:58 2017 +0200 +++ b/hgext/largefiles/__init__.py Fri Oct 13 22:28:03 2017 +0200 @@ -136,6 +136,10 @@ configitem('largefiles', 'patterns', default=list, ) +configitem('largefiles', 'usercache', + default=None, +) + reposetup = reposetup.reposetup def featuresetup(ui, supported): diff -r 3f3c6d12095d -r 8cf0a6cd1ed2 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Fri Oct 13 22:26:58 2017 +0200 +++ b/hgext/largefiles/lfutil.py Fri Oct 13 22:28:03 2017 +0200 @@ -71,7 +71,7 @@ def _usercachedir(ui): '''Return the location of the "global" largefiles cache.''' - path = ui.configpath(longname, 'usercache', None) + path = ui.configpath(longname, 'usercache') if path: return path if pycompat.iswindows: