equal
deleted
inserted
replaced
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() |