diff hgext/largefiles/lfcommands.py @ 15579:6c5e6ebe0812 stable

largefiles: use "ui.configlist()" to get largefiles.patterns configuration current lfconvert implementation uses combination of "ui.config()" and "str.split(' ')" to get largefiles.patterns configuration. but it can not handle multiline configuration in hgrc files correctly. lfconvert should use "ui.configlist()" instead of it, as same as override_add does.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 24 Nov 2011 17:54:50 +0900
parents 6a7e874390b0
children 9036c7d106bf
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py	Wed Nov 23 16:25:44 2011 -0600
+++ b/hgext/largefiles/lfcommands.py	Thu Nov 24 17:54:50 2011 +0900
@@ -71,9 +71,7 @@
             lfiles = set()
             normalfiles = set()
             if not pats:
-                pats = ui.config(lfutil.longname, 'patterns', default=())
-                if pats:
-                    pats = pats.split(' ')
+                pats = ui.configlist(lfutil.longname, 'patterns', default=[])
             if pats:
                 matcher = match_.match(rsrc.root, '', list(pats))
             else: