comparison hgext/notify.py @ 3424:bf10cd8bc981

use ui.readsections in the notify extension
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 17 Oct 2006 17:04:25 -0300
parents f0415b61949d
children b4ad640a3bcf
comparison
equal deleted inserted replaced
3423:5ee5a0fec904 3424:bf10cd8bc981
100 100
101 def __init__(self, ui, repo, hooktype): 101 def __init__(self, ui, repo, hooktype):
102 self.ui = ui 102 self.ui = ui
103 cfg = self.ui.config('notify', 'config') 103 cfg = self.ui.config('notify', 'config')
104 if cfg: 104 if cfg:
105 self.ui.readconfig(cfg) 105 self.ui.readsections(cfg, 'usersubs', 'reposubs')
106 self.repo = repo 106 self.repo = repo
107 self.stripcount = int(self.ui.config('notify', 'strip', 0)) 107 self.stripcount = int(self.ui.config('notify', 'strip', 0))
108 self.root = self.strip(self.repo.root) 108 self.root = self.strip(self.repo.root)
109 self.domain = self.ui.config('notify', 'domain') 109 self.domain = self.ui.config('notify', 'domain')
110 self.sio = templater.stringio() 110 self.sio = templater.stringio()