diff hgext/notify.py @ 8142:912bfef12ba6

ui: fold readsections into readconfig readconfig now reads only single files readconfig takes an optional list of sections readconfig trusts files we're looking for sections in
author Matt Mackall <mpm@selenic.com>
date Thu, 23 Apr 2009 15:40:10 -0500
parents e0c434abd530
children 06f1e4e309ed
line wrap: on
line diff
--- a/hgext/notify.py	Thu Apr 23 15:40:10 2009 -0500
+++ b/hgext/notify.py	Thu Apr 23 15:40:10 2009 -0500
@@ -99,7 +99,7 @@
         self.ui = ui
         cfg = self.ui.config('notify', 'config')
         if cfg:
-            self.ui.readsections(cfg, 'usersubs', 'reposubs')
+            self.ui.readconfig(cfg, sections=['usersubs', 'reposubs'])
         self.repo = repo
         self.stripcount = int(self.ui.config('notify', 'strip', 0))
         self.root = self.strip(self.repo.root)