use ui.readsections in the notify extension
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 17 Oct 2006 17:04:25 -0300
changeset 3434 bf10cd8bc981
parent 3433 5ee5a0fec904
child 3435 e4452c3fa736
use ui.readsections in the notify extension
hgext/notify.py
--- a/hgext/notify.py	Tue Oct 17 16:59:24 2006 -0300
+++ b/hgext/notify.py	Tue Oct 17 17:04:25 2006 -0300
@@ -102,7 +102,7 @@
         self.ui = ui
         cfg = self.ui.config('notify', 'config')
         if cfg:
-            self.ui.readconfig(cfg)
+            self.ui.readsections(cfg, 'usersubs', 'reposubs')
         self.repo = repo
         self.stripcount = int(self.ui.config('notify', 'strip', 0))
         self.root = self.strip(self.repo.root)