hgext/notify.py
changeset 3424 bf10cd8bc981
parent 3397 f0415b61949d
child 3646 b4ad640a3bcf
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()