largefiles: use ui.configlist() to split largefiles.patterns
authorGreg Ward <greg@gerg.ca>
Tue, 11 Oct 2011 21:11:01 -0400
changeset 15229 89e19ca2a90e
parent 15228 ee625de3541e
child 15230 697289c5d415
largefiles: use ui.configlist() to split largefiles.patterns
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Tue Oct 11 21:07:08 2011 -0400
+++ b/hgext/largefiles/overrides.py	Tue Oct 11 21:11:01 2011 -0400
@@ -70,9 +70,8 @@
 
     lfmatcher = None
     if os.path.exists(repo.wjoin(lfutil.shortname)):
-        lfpats = ui.config(lfutil.longname, 'patterns', default=())
+        lfpats = ui.configlist(lfutil.longname, 'patterns', default=[])
         if lfpats:
-            lfpats = lfpats.split(' ')
             lfmatcher = match_.match(repo.root, '', list(lfpats))
 
     lfnames = []