##// END OF EJS Templates
configitems: register the 'largefiles.usercache' config
Boris Feld -
r34758:8cf0a6cd default
parent child Browse files
Show More
@@ -136,6 +136,10 b" configitem('largefiles', 'minsize',"
136 configitem('largefiles', 'patterns',
136 configitem('largefiles', 'patterns',
137 default=list,
137 default=list,
138 )
138 )
139 configitem('largefiles', 'usercache',
140 default=None,
141 )
142
139 reposetup = reposetup.reposetup
143 reposetup = reposetup.reposetup
140
144
141 def featuresetup(ui, supported):
145 def featuresetup(ui, supported):
@@ -71,7 +71,7 b' def usercachepath(ui, hash):'
71
71
72 def _usercachedir(ui):
72 def _usercachedir(ui):
73 '''Return the location of the "global" largefiles cache.'''
73 '''Return the location of the "global" largefiles cache.'''
74 path = ui.configpath(longname, 'usercache', None)
74 path = ui.configpath(longname, 'usercache')
75 if path:
75 if path:
76 return path
76 return path
77 if pycompat.iswindows:
77 if pycompat.iswindows:
General Comments 0
You need to be logged in to leave comments. Login now