comparison hgext/notify.py @ 3437:d96429ddc8e2

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Tue, 17 Oct 2006 19:04:13 -0500
parents bf10cd8bc981
children b4ad640a3bcf
comparison
equal deleted inserted replaced
3436:357b5589dc62 3437:d96429ddc8e2
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()