##// END OF EJS Templates
configitems: register the 'largefiles.patterns' config
Boris Feld -
r34757:3f3c6d12 default
parent child Browse files
Show More
@@ -133,6 +133,9 b' configitem = registrar.configitem(config'
133 configitem('largefiles', 'minsize',
133 configitem('largefiles', 'minsize',
134 default=configitems.dynamicdefault,
134 default=configitems.dynamicdefault,
135 )
135 )
136 configitem('largefiles', 'patterns',
137 default=list,
138 )
136 reposetup = reposetup.reposetup
139 reposetup = reposetup.reposetup
137
140
138 def featuresetup(ui, supported):
141 def featuresetup(ui, supported):
@@ -109,7 +109,7 b' def lfconvert(ui, src, dest, *pats, **op'
109 lfiles = set()
109 lfiles = set()
110 normalfiles = set()
110 normalfiles = set()
111 if not pats:
111 if not pats:
112 pats = ui.configlist(lfutil.longname, 'patterns', default=[])
112 pats = ui.configlist(lfutil.longname, 'patterns')
113 if pats:
113 if pats:
114 matcher = matchmod.match(rsrc.root, '', list(pats))
114 matcher = matchmod.match(rsrc.root, '', list(pats))
115 else:
115 else:
@@ -111,7 +111,7 b' def addlargefiles(ui, repo, isaddremove,'
111
111
112 lfmatcher = None
112 lfmatcher = None
113 if lfutil.islfilesrepo(repo):
113 if lfutil.islfilesrepo(repo):
114 lfpats = ui.configlist(lfutil.longname, 'patterns', default=[])
114 lfpats = ui.configlist(lfutil.longname, 'patterns')
115 if lfpats:
115 if lfpats:
116 lfmatcher = matchmod.match(repo.root, '', list(lfpats))
116 lfmatcher = matchmod.match(repo.root, '', list(lfpats))
117
117
General Comments 0
You need to be logged in to leave comments. Login now